Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[now-next] Update 404 handling for pages/404 #3697

Merged
merged 9 commits into from Feb 19, 2020
Merged

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Jan 29, 2020

This adds handling for treating pages/404.js as the custom error page in Next.js to allow for more flexible auto static optimization on the 404 page. This makes sure we handle pages/404.js being a lambda due to _app having getInitialProps and also makes sure that visiting /404 doesn't respond with a 200 status code

We can add tests for this behavior after the below PR has been released in a canary of Next.js

x-ref: vercel/next.js#10329
x-ref: vercel/next.js#10593

@ijjk ijjk added the @now/next label Jan 29, 2020
@ijjk ijjk requested a review from Timer as a code owner January 29, 2020 22:32
@vercel
Copy link

vercel bot commented Jan 29, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/zeit/now/av73b8qy5
✅ Preview: https://now-git-next-pages-404.zeit.now.sh

@ijjk ijjk changed the title [now-next] Update 404 handling for experimental pages/404 [now-next] Update 404 handling for pages/404 Feb 19, 2020
@ijjk ijjk added the automerge label Feb 19, 2020
@kodiakhq kodiakhq bot merged commit 5be2917 into master Feb 19, 2020
@kodiakhq kodiakhq bot deleted the next/pages-404 branch February 19, 2020 20:55
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.

None yet

2 participants