Closed juliusmarminge closed 1 year ago
Could you try without using the src/
directory? That's my first guess looking at this. Thanks for opening!
Could you try without using the
src/
directory? That's my first guess looking at this. Thanks for opening!
Still 404-ing after refactoring not to use src/
:
https://github.com/juliusmarminge/jumr.dev/blob/main/app/sitemap.ts
Vercel build logs aren't mentioning sitemap anywhere (unsure if it should though):
You're ignoring ts
in pageExension
in your next config but using ts as file extension for robots and sitemap routes. Changing the file extension to tsx or add ts into pageExtension
can fix it
You're ignoring
ts
inpageExension
in your next config but using ts as file extension for robots and sitemap routes. Changing the file extension to tsx or add ts intopageExtension
can fix it
Aaaahh, silly me. Sorry for the confusion...
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true)
Link to the code that reproduces this issue
https://github.com/juliusmarminge/jumr.dev
To Reproduce
Follows @leerob’s tweet https://twitter.com/leeerob/status/1639639575843729409?s=46&t=Uy_Hg1WWwsYDe1YleBLsaA to setup sitemap & robot. (Source: https://github.com/leerob/leerob.io/blob/main/app/sitemap.ts).
Describe the Bug
unfortunatly, no sitemap seems to be om generated: https://jumr.dev/sitemap.xml
Expected Behavior
Route above not to 404, see https://leerob.io/sitemap.xml
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Vercel