-
Notifications
You must be signed in to change notification settings - Fork 462
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
Regression - nuxt generate doesn't generate static routes #82
Comments
Can confirm. |
Hi! I'll give this a try ASAP! |
Even though it's not really a complete solution, what works is to add this to nuxt.config.js: generate: {
routes: [ '/', '/posts/', '/fr/' ] // <-- an array with all the routes that you need to be rendered
} |
Hi friends, any status on this fix? (don't mean to put pressure or anything ;) ) |
Stuck with this bug also, |
In nuxt 1.4.0, the method used during static generation test if children exist but not if children is empty. By overwriting the children value to [] we automatically filter out the routes see: https://github.com/nuxt/nuxt.js/blob/85b584693cd1e689406ad722b47735fa7d0faf26/lib/common/utils.js#L193
@Diferno @SnirShechter can you test my branch on your website to check if it generate everything for you? |
I am still experiencing this problem with nuxt-i18n v4.0.0 |
Upgraded nuxt-i18n to 3.3.1 and generates as a charm. Thx |
Version
v3.1.0
Reproduction link
https://github.com/paulgv/nuxt-i18n-example
Steps to reproduce
Running
nuxt generate
in version 3, only generates index.html.In version 2
nuxt-generate
generates all static routesWhat is expected ?
All routes statically generated
What is actually happening?
Only index.html is generated
The text was updated successfully, but these errors were encountered: