Comments (4)
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 /api/__sitemap__/document-driven-urls
endpoint: I am not sure what the purpose of this endpoint is. I just found it in the source code and thought it would be something to modify aswell when a dynamic endpoint is choosable.
For our site there is a reverse proxy which routes the client requests to the right destination. https://*frontend*/
to the nuxt server and among others https://*frontend*/api
to a custom backend. Now every request going to /api
will never get to the nuxt server. Custom endpoints for the sitemap would help our implementation in this regard.
from sitemap.
Thanks a ton! All is working well and we can finally use the sitemap correctly :)
from sitemap.
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 /api/__sitemap__/document-driven-urls
endpoint as it's one registered by the module. Is your site actually using it? If so, can you elaborate on the issues you have with this? Is it because you're applying some middleware to all api routes?
from sitemap.
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',
},
})
from sitemap.
Related Issues (20)
- This XML Sitemap contains 0 URLs HOT 6
- Sitemap Caching – sitemap.xml doesn’t update on Netlify host unless cacheMaxAgeSeconds is set to 0 HOT 4
- Image discovery can pull valid src values but invalid image:loc values such as data:, blob:, or file:
- Feature Request: Video Discovery HOT 2
- Various warning when running with Nuxt3
- "postinstall": "pnpm dev:prepare" issue HOT 5
- Cloudflare Pages fails because of dependency Node compatibility HOT 2
- 如何添加额外的协议 HOT 4
- When only linking to an external site map is configured, the multiple-sitemaps warning should be canceled
- i18n: How to generate dynamic urls per language? HOT 7
- i18n: How to disable indexing of custom route paths (translated route paths) HOT 7
- [Bug] 5xx if too many pages & languages HOT 2
- Conditionally allow runtime logic to prevent dynamic sitemap creation from defineSitemapEventHandler
- Homepage down HOT 1
- Dynamic URLs with i18n will not automatically add a language prefix HOT 3
- False multi-sitemap warning HOT 1
- Sitemap URL returns 500 error when accessed directly HOT 1
- docs: subdomain routing + sitemap HOT 1
- fix: [xsl] project/website name (inside h2 tag) exposing project name from package.json without any ability to hide/change it HOT 1
- help: sitemap-lastmod feature is forced to transfer iso type HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sitemap.