You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Demo-mode: swap public bake form for "contact for a demo" CTA
When LEDE_CONTACT_URL is set, the bake section renders a CTA pointing at
that URL (mailto: or https://) instead of the live BakeForm. Used on the
hosted Vercel demo so anonymous visitors don't burn the maintainer's API
budget. Self-hosters that leave it unset keep the form.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,7 @@ Auto-detected from what you paste; you can also force a kind via the API.
57
57
|`OPENROUTER_BRIEF_MODEL`|`anthropic/claude-sonnet-4.6`| Which model writes the brief. |
58
58
|`LEDE_COST_CAP_USD`|`0.75`| Max estimated cost **per single bake** (sanity guard, not a budget). See cost section below. |
59
59
|`LEDE_DEMO_PASSWORD`| (unset) | When set, all routes require `Basic <base64(lede:password)>`. Browser prompts once per session. |
60
+
|`LEDE_CONTACT_URL`| (unset) | When set, the public bake form is swapped for a "Contact for a demo" CTA pointing at this URL (`mailto:` or `https://`). Used on hosted deploys to avoid visitor API-budget drain. |
60
61
|`LEDE_LOCAL_AVAILABLE`| (unset) | Set to `1` when running on a host with `mflux` installed; surfaces the local-redo button. |
61
62
|`LEDE_EPHEMERAL`| auto (true on Vercel) | When true, visitor bakes don't persist. Defaults to true if `VERCEL=1`. |
62
63
|`UPSTASH_REDIS_REST_URL` + `UPSTASH_REDIS_REST_TOKEN`| (unset) | Rate-limit storage. When absent, falls back to in-process memory (dev only). |
{demoMode ? 'Want a private demo?' : 'Paste a URL, text, or HTML.'}
121
130
</h2>
122
131
<pclassName="mt-4 text-ink-soft leading-relaxed">
123
-
Lede fetches or parses it, writes the brief, and bakes three lead images side by
124
-
side. Most runs finish inside three minutes.
132
+
{demoMode
133
+
? "Live baking is gated on this hosted demo so the API budget doesn't get drained. Drop me a line and I'll run a private demo against your own articles, or clone the repo for a self-hosted run."
134
+
: 'Lede fetches or parses it, writes the brief, and bakes three lead images side by side. Most runs finish inside three minutes.'}
0 commit comments