Skip to content

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

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

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
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

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.

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