Skip to content
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

Only default locale in produced sitemap: nextra with next-sitemap and i18n #712

Closed
alecpetrosky opened this issue Aug 19, 2022 · 3 comments
Milestone

Comments

@alecpetrosky
Copy link

alecpetrosky commented Aug 19, 2022

Using nextra with next-sitemap and i18n generates sitemap for default language only. But it perfectly generates all language versions on build as expected. It seems that next-sitemap ignores all other language subfolders (in my case /es/) generated by nextra except the default locale.

next.config.js

const withNextra = require('nextra')({
  theme: 'nextra-theme-docs',
  themeConfig: './theme.config.js',
  unstable_staticImage: true
})
module.exports = withNextra({
  i18n: {
    locales: ['en', 'es'],
    defaultLocale: 'en',
    // localeDetection: false,
  }
})

package.json

...
"postbuild": "next-sitemap"
...

Maybe related to #419, not sure.

@anaclumos
Copy link

Also would like to learn any updates.

@Prottoy2938
Copy link

Any solution yet?

@dimaMachina
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants