Prompt for token on page load, cap max machines at 2

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-13 17:34:12 -07:00
parent 0fc37d690d
commit fa7e300424
2 changed files with 4 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ primary_region = "sjc"
auto_start_machines = true auto_start_machines = true
auto_stop_machines = true auto_stop_machines = true
min_machines_running = 0 min_machines_running = 0
max_machines_running = 10 max_machines_running = 2
# Allow 2 concurrent connections so /health can succeed while /convert is running. # Allow 2 concurrent connections so /health can succeed while /convert is running.
# We enforce "only 1 conversion at a time" in server.js. # We enforce "only 1 conversion at a time" in server.js.

View File

@@ -326,6 +326,9 @@ app.get("/", (_req, res) => {
return t.trim(); return t.trim();
} }
// Prompt immediately on page load
if (!localStorage.getItem(KEY)) getToken();
async function strip(file) { async function strip(file) {
const token = getToken(); const token = getToken();
if (!token) return; if (!token) return;