fix(env): point NEXT_PUBLIC_API_URL at the live origin, not dead api.0pt.app
CI (SIAX Cloud) / security (push) Successful in 20s
CI (SIAX Cloud) / quality (push) Successful in 48s
Security Scan (SIAX Cloud) / security (push) Successful in 29s
CI (SIAX Cloud) / security (pull_request) Successful in 30s
CI (SIAX Cloud) / quality (pull_request) Successful in 59s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 28s
CI (SIAX Cloud) / security (push) Successful in 20s
CI (SIAX Cloud) / quality (push) Successful in 48s
Security Scan (SIAX Cloud) / security (push) Successful in 29s
CI (SIAX Cloud) / security (pull_request) Successful in 30s
CI (SIAX Cloud) / quality (pull_request) Successful in 59s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 28s
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 <noreply@anthropic.com>
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user