Skip to content
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

fix: sitemap_index.xml collides with server/routes/s/** server route #391

Open
gavin667 opened this issue Dec 18, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@gavin667
Copy link

🐛 The bug

We have a catch all "shortlink" URL that lives under domain-here.com/s/any-path-or-folder-can-go-here.

When we have multi sitemaps we get the sitemap_index.xml file which is accessible locally under domain-here.com/sitemap_index.xml but when building for production it returns the response from server/routes/s/[...].get.js.

This can be seen here - https://nuxt-3-colliding-server-route.vercel.app/sitemap_index.xml (using the reproduction repo linked below)

🛠️ To reproduce

You can clone https://github.com/gavin667/nuxt-3-colliding-server-route, run npm run build, PORT=3001 node .output/server/index.mjs then access at http://localhost:3001/sitemap_index.xml

🌈 Expected behavior

I would expect to be able to access sitemap_index.xml in both local and production builds.

ℹ️ Additional context

No response

@gavin667 gavin667 added the bug Something isn't working label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant