From f596a771dc4af1d8a2c0170815f762f9db424b08 Mon Sep 17 00:00:00 2001 From: sax3l Date: Thu, 27 Aug 2026 01:08:03 +0200 Subject: [PATCH] fix(env): point NEXT_PUBLIC_API_URL at the live origin, not dead api.0pt.app MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit api.0pt.app has no deployment behind it: it falls through to the wildcard-Vercel catch-all and returns DEPLOYMENT_NOT_FOUND (404), like every other dead *.0pt.app hostname. The only live hostname is 0pt.app itself, and the app serves its own /api routes on that same origin (app/api/*), so the honest example value is https://0pt.app. No code reads NEXT_PUBLIC_API_URL today (grep-verified; docs/08 already records 'no read found'), so this only stops the example file from teaching operators a dead URL. Same coherence sweep context: only id.cloud.siax.io and id-customers.siax.io are live IdPs — dead hostnames must not be presented as reachable defaults anywhere. Other api.0pt.app references (infra/Caddyfile, contracts/openapi.yaml, siax.repo.json, docs/*) are deliberately left untouched: the docs already flag them as unverified, and Caddyfile/openapi/repo-manifest changes are contract/infra decisions outside this sweep's scope. Co-Authored-By: Claude Fable 5 --- .env.example | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index bec0d82..f0bde46 100644 --- a/.env.example +++ b/.env.example @@ -24,7 +24,10 @@ # Public base URL of this app (used for absolute links / callbacks). NEXT_PUBLIC_APP_URL=http://localhost:3000 # Documented target (docs/08); no call site found reading it in this pass. -NEXT_PUBLIC_API_URL=https://api.0pt.app +# NOTE: api.0pt.app is a dead hostname (falls through to wildcard Vercel -> +# DEPLOYMENT_NOT_FOUND). The app serves its own /api routes on the site +# origin, so the honest base URL is the live origin itself. +NEXT_PUBLIC_API_URL=https://0pt.app # --------------------------------------------------------------------------- # Database (Postgres) -- wired in code today: lib/db.ts, app/api/health -- 2.54.0