Comments (5)
Hey, thanks for the issue!
I've added the inferStaticPagesAsRoutes
to escape from using generateUrls
, available in 1.0.5.
export default defineNuxtConfig({
sitemap: {
inferStaticPagesAsRoutes: false,
}
})
I'll be looking to support i18n properly soon, if you have any other ideas on what the integration should look like, please let me know :)
from sitemap.
@harlan-zw
It works like a charm, thanks 👌
PS In the README.md, it is said that the include
property default value is undefined
.
While in reality, its default value (src/module.ts line 69) is include: ['/**']
.
You should update the README properties values to reflect reality.
from sitemap.
@harlan-zw It works like a charm, thanks ok_hand
PS In the README.md, it is said that the
include
property default value isundefined
. While in reality, its default value (src/module.ts line 69) isinclude: ['/**']
. You should update the README properties values to reflect reality.
Thanks, have updated the doc. Did you run into an issue with it being ['/**'*']
?
from sitemap.
Nope, no issues.
I find it weird to have include
and exclude
rules applied to both urls
and prerendedRoutes
since the challenges for those two arrays are different.
Plus, you run urlFilter
two times.
The first time inside generateUrls
, thus on the soon-to-be populated urls
array.
The second time directly on the merged array [...urls, ...prerendedRoutes]
.
Consequently, you run the filter function twice on a section of the final URLs.
from sitemap.
Nope, no issues.
I find it weird to have
include
andexclude
rules applied to bothurls
andprerendedRoutes
since the challenges for those two arrays are different.Plus, you run
urlFilter
two times. The first time insidegenerateUrls
, thus on the soon-to-be populatedurls
array. The second time directly on the merged array[...urls, ...prerendedRoutes]
. Consequently, you run the filter function twice on a section of the final URLs.
Agreed, the code isn't as good as it could be, optimised for getting it finished. Will refactor it at some point when I add a new feature. Always happy to receive PRs too :P
from sitemap.
Related Issues (20)
- Sitemap generation is drastically slower after version `5.1.5` HOT 1
- When generating, ${BASE_URL}/sitemap.xml is being called HOT 1
- TypeError: Could not load virtual:#sitemap/global-sources.mjs (imported by node_modules/@nuxtjs/sitemap/dist/runtime/nitro/sitemap/urlset/sources.mjs): Converting circular structure to JSON --> starting at object with constructor 'Array' --- index 4 closes the circle HOT 1
- 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
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.