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
Disable payload extraction for nuxi build
#15450
Comments
One related thing that is quite confusing to me is also what is the exact result of the
As for now if I run I've seen there is a I think it would be good to be able to have different commands or flags for different scenarios so we can run the same project in several modes without the need to change the config. As for your suggestions, I think the two behaviors you suggested make sense if we don't consider the caching strategy issue. |
Dear @kilobyte2007 are you using |
Hey @pi0, yes we are using the |
Happy to disable it by default for |
Something to note is that the experimental feature shall be |
Currently we have some flags in |
Followup nuxt/framework#8890 by @danielroe
There are currently some uncertain decisions about the final API and behavior with payload extraction behavior like how we apply payload updates on CSR route change (should the key of static payload be prefixed with routes as well or remain global same as asyncData keys). (Tracker issue: #14507)
Making the decision to enable this feature or not is a tricky one because on one hand, we are really close to v3.0.0 release deadline and we don't want to mark a functionality as stable and change it in a semver-minor release and on the other hand, payload extraction is an essential feature for the release with full static generation support.
I suggest two behaviors:
nuxt build
when we have a server and the possibility of having hybrid prerendering, disable an option by default. Payload extraction will be always opt-in in Nuxt 3 for server mode.nuxt generate
when we are expected to output a "full static" output, enable the futurenuxt generate
An alternative is to always disable feature until we are really sure it is stable but there are few downsides:
nuxt generate
, even if super stable, is still a breaking change considering we essentially change caching strategytarget: 'static'
) is less intuitive for starter users and even more confusing to explainThe text was updated successfully, but these errors were encountered: