# --- Airtable ---
AIRTABLE_API_KEY=patmngVoCLK1emLNj.11ff9cad3484cbda79cb0b4993e1ee52da9bea4221b01d6760ed6b6ead36ec21
AIRTABLE_BASE_ID=appB1yv1qALQEqRQp
AIRTABLE_TABLE_NAME='FA -'

# Column names in your Airtable table — override if yours differ.
AIRTABLE_LOGO_FIELD=Logo
AIRTABLE_SIGNTYPE_FIELD="Sign Type - Signize"
# Checkbox — a record is only picked up while this is checked. Automatically
# unchecked on failure so broken records aren't retried forever; re-check it
# in Airtable once you've fixed the issue to retry.
AIRTABLE_CREATE_MOCKUP_FIELD=Create Mockup
# Attachment — the generated mockup goes here. A record counts as "done"
# once this is non-empty (no separate status field needed).
AIRTABLE_GENERATED_MOCKUP_FIELD=Generated Mockup
# Long text — the error message is written here on failure.
AIRTABLE_ERROR_FIELD=Mockup Generation Error

# --- Mockup API ---
MOCKUP_API_URL=https://mockup-generation-backend.vercel.app
# Use a token with enough monthly quota for this job (or no limit) — create
# one from the admin dashboard's Users page.
MOCKUP_API_TOKEN=mk_live_47fda5ecdbbf7b47505057fb9417926789384d69f056d6c3

# --- Batch behavior ---
# Records fetched from Airtable per query.
BATCH_SIZE=10
# Optional cap for test runs, e.g. 5 to dry-run against a handful of
# records before pointing this at everything. Leave unset for a real run.
MAX_RECORDS=100
# Fetch timeout for a single /mockups call, in ms. Real calls have been
# observed up to ~90s; this gives real headroom above that.
MOCKUP_REQUEST_TIMEOUT_MS=150000
# How long a stale lockfile is trusted to mean "still running" before a
# new invocation assumes the previous one crashed and proceeds anyway.
LOCK_STALE_MS=21600000
