-
Notifications
You must be signed in to change notification settings - Fork 108
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
XML Sitemap getServerSideProps: 404 in production #3596 #338
Comments
I found the "issue". I have put the sitemaps in a separated folder in pages directory. Now everything is working fine. Previous
Now
|
I'll keep this open. We need to investigate the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: