Skip to content

404 with _app getInitialProps #11263

Answered by ijjk
1derwood asked this question in Help
Discussion options

You must be logged in to vote

Hi, it looks like you're running into this issue #10919 which was resolved in v9.3.1 of Next.js specifically this PR #10974. You are allowed to use pages/404 even if you have getInitialProps in pages/_app although it will not be statically optimized currently since you are defining an app wide data dependency when using getInitialProps in pages/_app

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 1derwood
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants