build(vercel): deploy the static frontend only, exclude api/; docs(readme): point Live-demo at the permanent production URL

- Add .vercelignore excluding api/ from this Vercel deployment (api/'s
  sqlite-backed stores write to a read-only serverless filesystem, and its
  top-level *.integration.test.ts files import vitest and would break the
  zero-config function convention) - the committed api/ directory itself is
  untouched, only excluded from this specific static deploy.
- Override vercel.json's buildCommand to type-check only the app/node
  tsconfig projects (tsc -b tsconfig.app.json tsconfig.node.json), since
  tsconfig.api.json's "include": ["api"] has no inputs once api/ is
  excluded from the uploaded deployment files - package.json's own "build"
  script is untouched for local full-repo builds.
- Deploy to a new Vercel project (first-place-overhaul-todo6, account
  yoyoyonono / team aaron-thapas-projects) via npx vercel --prod --yes.
  Stable canonical production URL:
  https://first-place-overhaul-todo6.vercel.app
- Update README's "## Live demo" section to point at the permanent URL,
  remove the stale "may already be dead"/"planned separately" temp-preview
  language, and note the live deploy is the static frontend only - the
  self-hosted sync/blob/admin backend (api/) remains a separate,
  self-hosted-only component, not part of this public URL.
This commit is contained in:
OmO Orchestrator committed 2026-11-20 15:52:45 -05:00
1 parent b3d458033e
commit afb16a5357
3 files changed
+25 -10

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
# This deployment ships the static frontend only. The api/ serverless
# functions are NOT safely deployable as-is on Vercel: api/_lib's sqlite-
# backed stores write to a filesystem path (Vercel's serverless filesystem
# is read-only outside /tmp, which is ephemeral and per-instance), and
# api/*.integration.test.ts sit at the top level of api/, where Vercel's
# zero-config convention would treat them as functions even though they
# import vitest. Exclude the whole directory from this static deploy
# without touching the committed api/ directory itself.
api/
+15 -10
View File
@@ -18,21 +18,26 @@ works, and a step-by-step guide to running and demoing it live.
## Live demo
**Try it:** the deployed build lives at a Vercel preview URL that was created
with `vercel deploy --temporary --yes` during this build window. Temporary
preview URLs expire roughly one hour after the last deploy to them, so by the
time you read this the link below may already be dead - this was an explicit,
accepted tradeoff for the submission window, not an oversight. A permanent
`vercel --prod` deployment is planned separately, outside this document's
scope.
**Try it:** [`https://first-place-overhaul-todo6.vercel.app`](https://first-place-overhaul-todo6.vercel.app)
- a permanent `vercel --prod` production deployment, not a temporary preview
link - it does not expire.
- Preview URL (may be expired): `https://agile-citrine-45o1qv9.tmp.now`
- If it's dead, redeploy it yourself in under a minute:
This deploy is the **static frontend only**. The self-hosted sync/blob/admin
backend (`api/*`) is a separate, self-hosted-only component per this
project's standing no-managed-cloud-backend preference - it is never part of
this public URL. The app is local-first by design (see above), so the
backend being absent here changes nothing about how it works: every balance
and allocation is still a deterministic replay of this browser's own signed
Event Log, and the one sanctioned caller of that backend
(`trySyncWithBackend()` in `src/lib/sync.ts`) is a silent, throw-free no-op
whenever it's unreachable - exactly the case on this deploy.
- Redeploy it yourself in under a minute:
```bash
npm install
npm run build
npx vercel --prod # or: npx vercel deploy --yes for a fresh preview
npx vercel --prod # api/ is excluded from this deploy via .vercelignore
```
(Requires a free Vercel account; `vercel login` once if you've never used
+1
View File
@@ -1,5 +1,6 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"buildCommand": "tsc -b tsconfig.app.json tsconfig.node.json && vite build",
"rewrites": [
{ "source": "/((?!api/).*)", "destination": "/index.html" }
]