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

fix(nuxt): add pages in correct hook when generating #22088

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves #22072

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

When updating Nuxt to use new Nitro static flag, we kept the existing modules:done hook, which had already been called at this point, meaning page-produced routes were never added to prerender routes.

This updates the logic so they will be correctly added when generating, either with nuxi build --prerender or nuxi generate.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@iwt-gregorpoloczek
Copy link

Really looking forward to this PR!

@danielroe danielroe merged commit e9dac76 into main Jul 12, 2023
28 checks passed
@danielroe danielroe deleted the fix/generate-pages branch July 12, 2023 07:26
@github-actions github-actions bot mentioned this pull request Jul 12, 2023
@mrniamster
Copy link

mrniamster commented Jul 12, 2023

Hello @danielroe , Also please note the Content routes were also not generating, will this be resolved after this ?
Link: #22084

Awaiting your reply & this PR <3

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

Successfully merging this pull request may close these issues.

nuxt generate does not render pages since 3.6.0
4 participants