-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
help: generate dynamic sitemap and include external sitemap #359
Comments
I would also like to fetch sitemap.xml from an external source (proxied sitemap). I tried using nitro.routeRules to force a redirect on a specific file, but this is not working for sitemap. I believe the sitemap module is bypassing route rules. |
@dtogias
|
@gsabater Interesting approach, but in my case one of the sitemaps points to our blog website and i don't want to point to another domain. I need all sitemaps to be under our main website. |
Hi, the issue isn't exactly clear. Are you saying you want to be able to have an XML source that gets merged? At the moment the source only supports JSON response of sitemap entries, |
@harlan-zw In our scenario, we have a wordpress website that is being proxied through our www website. {{baseURL}}/blog -> fetches through a cloudflare worker the page from wordpress and serves it under wwww. In that scenario the wordpress sitemap.xml needs to be included in the top level sitemap.xml, since it part of www Here is our top level XML
For the
which is a dummy entry to generate the top level sitemap entry. The actual file is being served by workpress. We would suggest the following options:
Hope this helps |
You can now use XML sitemaps as source paths in the latest so I'll consider this closed. |
📚 What are you trying to do?
Hello,
i would like to create a new sitemap merging the current project routes and an external sitemap from an api.
🔍 What have you tried?
I’m using Nuxt Sitemap to generate a list of URLs with the crawler module, and it's working as expected with the following configuration:
However, I want to include a large and expensive sitemap from an API, which contains over 40,000 game links. I’ve partially achieved this by adding the API URL as a source. Even though the URL is .xml, the data is dynamically loaded from the database:
Finally, during the build process, I want to generate a static sitemap.xml file that merges the crawled URLs with the external API URLs so that the application no longer queries the API at runtime.
I’ve tried consulting GPT, reviewing the documentation, and checking GitHub issues, but I haven’t been able to find a definitive solution. I’ve experimented with several approaches, but I’m unsure if this is achievable with the current setup.
Thanks for your time and any guidance you can provide!
ℹ️ Additional context
No response
The text was updated successfully, but these errors were encountered: