Next 9.4.0 with pkg - Static pages are not found #13128
Unanswered
nikoskleidis
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We had a nextjs app on v9.3.6 packaged with the pkg.
We have 1 server side rendered page and 3 static pages.
When we upgraded to version 9.4.0 the app seemed to worked perfectly on dev mode. But when we packaged using the pkg we couldn't access the 3 static pages anymore. We got a 404 when we tried.
We converted those static pages into server rendered by adding an empty getInitialProps into them and the problem was gone. We didn't get 404 when we tried to access them.
This is not a solution that we liked and also didn't work well for our custom 404 page because of this issue
Has anybody faced something similar? Any help would be much appreciated
Beta Was this translation helpful? Give feedback.
All reactions