Code Monkey home page Code Monkey logo

Comments (5)

harlan-zw avatar harlan-zw commented on July 30, 2024 2

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.

provok-me avatar provok-me commented on July 30, 2024 1

It's working!

Thanks a lot 🙏

from sitemap.

provok-me avatar provok-me commented on July 30, 2024

Hi @harlan-zw ✌️

Your patch is not working.

Netlify build

Capture d’écran 2023-04-08 à 12 21 37

Local build

Capture d’écran 2023-04-08 à 12 21 52

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.

harlan-zw avatar harlan-zw commented on July 30, 2024

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.

provok-me avatar provok-me commented on July 30, 2024

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.

Capture d’écran 2023-04-08 à 15 18 52

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.