Comments (5)
I think the issue is related to the i18n integration and the fact that nitro is using a local fetch for the routes file.
I've pushed up 2 fixes which hopefully these out.
Can you try v2.4.8 and let me know how it goes?
from sitemap.
It's working!
Thanks a lot 🙏
from sitemap.
Hi @harlan-zw ✌️
Your patch is not working.
Netlify build
Local build
nuxt-simple-sitemap config
{
trailingSlash: true,
inferStaticPagesAsRoutes: false,
}
System / Nuxt Info
- Operating System: `Darwin`
- Node Version: `v19.7.0`
- Nuxt Version: `3.3.3`
- Nitro Version: `2.3.2`
- Package Manager: `[email protected]`
- Builder: `vite`
- User Config: `typescript`, `modules`, `generateSvgsViewboxes`, `i18n`, `svgo`, `image`, `robots`, `sitemap`, `feed`, `runtimeConfig`, `vue`, `vite`, `nitro`, `routeRules`, `css`, `app`
- Runtime Modules: `~~/modules/download-global/index.ts`, `~~/modules/download-routes-params/index.ts`, `~~/modules/cms-redirections/index.ts`, `~~/modules/generate-svgs-viewboxes/index.ts`, `~~/modules/lite-youtube-embed/index.ts`, `~~/modules/feed/index.ts`, `@nuxtjs/[email protected]`, `[email protected]`, `@nuxt/[email protected]`, `[email protected]`, `[email protected]`
- Build Modules: `-`
from sitemap.
Hi @provok-it
The fix I deployed was related to the base urls. Would you mind clarifying what the issue is in the screenshot?
It's using localhost
in production?
from sitemap.
First, since your patch inferStaticPagesAsRoutes: false
seems to have stopped working.
As you can see, the module generates urls that don't exist and corresponds to the name of the files in my ./pages
directory.
Behind that, the real issue in itself is that in local, all the pre-rendered urls are generated in the sitemap.xml, whereas when deployed on the Netlify preprod and prod the pre-rendered urls are not generated.
It looks like the prerenderedRoutesPayload
variable used in the file src/runtime/util/entries.ts
is not filled with the pre-rendered urls when deployed on Netlify.
Of course, it is just a guess.
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.