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:
2
fly.toml
2
fly.toml
@@ -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.
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user