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

fixes #68956: SSG with empty generated params for dynamic routes #68957

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

guybinya
Copy link

What?

Skipping pages with empty static params while using output export instead of throwing an error on build.

Why?

Allowing conditional building of sites with dynamic routes that are generated (for example) through a CMS on build time.

How?

Introducing another flag called generateStaticParamsIsEmpty.
Based on this flag we can allow build to skip this route generation.
Added a console.warn message to avoid unwanted route skips.

Possible Improvements

Could be beneficial to add this behavior under an experimental flag.

Fixes #68956

@ijjk
Copy link
Member

ijjk commented Aug 15, 2024

Allow CI Workflow Run

  • approve CI run for commit: dabd56a

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

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.

Conditional building pages with export: output is not supported
3 participants