Skip to content

fix: restore homepage routing by building on Vercel - #32

Merged
m1sterc001guy merged 1 commit into
mainfrom
fix-vercel-root-404
Aug 14, 2026
Merged

fix: restore homepage routing by building on Vercel#32
m1sterc001guy merged 1 commit into
mainfrom
fix-vercel-root-404

Conversation

@m1sterc001guy

Copy link
Copy Markdown
Collaborator

Problem

Production is serving 404 at / while the homepage is live at /index:

Path Result
/ 404 (12,299 B — the export's 404.html)
/index 200 (74,907 B — the real homepage)
/privacy 200

The v0.10.0 deploy (#31) succeeded and the artifact is correct — I rebuilt 87c4eae locally and it emits out/index.html at exactly 74,907 bytes and out/404.html at exactly 12,299 bytes, matching the byte counts served in production. Nothing is missing from the build.

The failure is in the routing config: index.html got bound to /index instead of the site root, so / falls through to 404.html. This is Vercel-side, not the reverse proxy in front of ecash.love — the alias ecash-app-site.vercel.app reproduces it directly with server: Vercel and no nginx in the chain.

Fix

Verification

The preview build for this branch passed, confirming vercel.json doesn't break the build. Preview deployments are SSO-gated, so the routing change itself can only be confirmed once this is on main. Post-merge check:

curl -sS -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0" https://ecash-app-site.vercel.app/

Expect 200; it is 404 today.

Note the production workflow's source-side deploy path has not run before, so the merge is its first execution. If it fails, the current deployment stays on the alias — the failure mode is "still broken," not "newly broken."

🤖 Generated with Claude Code

The v0.10.0 deploy left / returning 404 while the homepage was served
at /index. The build artifact was correct (out/index.html was emitted),
but the routing config generated by the local prebuilt path never bound
index.html to the site root.

Pin the framework to nextjs via vercel.json and deploy from source so
Vercel's own Next.js pipeline generates the routing config, instead of
uploading a prebuilt output. Also add workflow_dispatch so production
can be redeployed without an empty commit.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@m1sterc001guy
m1sterc001guy merged commit f1cd291 into main Aug 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant