-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Configuration option for different api routes not using /api prefix #42
Comments
Hey @heisig, thanks for the suggestion! Would you mind reviewing the PR to support it: #44 I'm hesitant to add supporting for modifying the |
Thanks for the quick answer! I will have a look at the PR though I might not be the perfect person for a review. Regarding the For our site there is a reverse proxy which routes the client requests to the right destination. |
Thanks for the details :) The PR is merged and available in 2.5.0. Give it a try and if you're still having issues happy to investigate further configuration requirements export default defineNuxtConfig({
sitemap: {
dynamicUrlsApiEndpoint: '/__sitemap',
},
}) |
Thanks a ton! All is working well and we can finally use the sitemap correctly :) |
Clear and concise description of the problem
It would be great to use other routes than
/api/_sitemap-urls
for handling dynamic URLs.In our project, the routes with prefix
/api
are used differently and collide with the hardcodedserver/api/_sitemap-urls.ts
.Suggested solution
If possible, a configuration could be implemented to choose the prefered route.
Here the nuxt documentation describes how to use server routes without the
/api
prefixMaybe this route has to be configurable too:
/api/__sitemap__/document-driven-urls
I would love to hear your thoughts on this topic.
Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: