Skip to content

fix(core): render branded page for /404 instead of Vercel default#2903

Closed
malewis5 wants to merge 1 commit intobigcommerce:canaryfrom
vercel:mttlws/404-fix
Closed

fix(core): render branded page for /404 instead of Vercel default#2903
malewis5 wants to merge 1 commit intobigcommerce:canaryfrom
vercel:mttlws/404-fix

Conversation

@malewis5
Copy link
Copy Markdown
Contributor

@malewis5 malewis5 commented Mar 2, 2026

Visiting /404 directly shows the default Vercel black screen because
Next.js special-cases this path with a pre-rendered static 404.html,
bypassing the [locale] segment entirely.

Fix by splitting the layout into a true root layout (app/layout.tsx)
owning , , fonts, and globals.css, and converting the
locale layout into a nested layout. A new root not-found.tsx renders
a minimal branded 404 page for this edge case.

Visiting /404 directly shows the default Vercel black screen because
Next.js special-cases this path with a pre-rendered static 404.html,
bypassing the [locale] segment entirely.

Fix by splitting the layout into a true root layout (app/layout.tsx)
owning <html>, <body>, fonts, and globals.css, and converting the
locale layout into a nested layout. A new root not-found.tsx renders
a minimal branded 404 page for this edge case.

Made-with: Cursor
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 2, 2026

@malewis5 is attempting to deploy a commit to the BigCommerce Platform Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
catalyst Ready Ready Preview, Comment Mar 23, 2026 2:40pm

Request Review

@jorgemoya
Copy link
Copy Markdown
Contributor

This PR is superseded by #2947. Thanks for the example @malewis5!

@jorgemoya jorgemoya closed this Mar 23, 2026
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.

2 participants