You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Almost everything in my NextJS is getStaticProps.
I only generate the dynamic XML Sitemaps with getServerSideProps. If I check it localhost it is working, in production the URL it is giving a 404.
Also did a test without .xml extensions, just a getServerSideProps test page. Also gets a 404.
Looks like the page is nog generated on the server with getServerSideProps.
I found the "issue".
I have a dynamic route [slug].tsx directly after the root in pages folder.
So I think that was the issue, and why it gaves 404 errors for other pages directly after the root in pages folder.
I have put the sitemaps in a separated folder in pages directory. Now everything is working fine.
Almost everything in my NextJS is getStaticProps.
I only generate the dynamic XML Sitemaps with getServerSideProps. If I check it localhost it is working, in production the URL it is giving a 404.
Also did a test without .xml extensions, just a getServerSideProps test page. Also gets a 404.
Looks like the page is nog generated on the server with getServerSideProps.
Any ideas to fix this?
SST: 2.38.7
OpenNext v2.3.1
Next.js v14.0.2
https://discord.com/channels/983865673656705025/1027265626085019769/threads/1170375439664025773
The text was updated successfully, but these errors were encountered: