question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable payload extraction for `nuxi build`

See original GitHub issue

Followup https://github.com/nuxt/framework/pull/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: #6411)

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:

  • For 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.
  • For nuxt generate when we are expected to output a “full static” output, enable the future

An alternative is to always disable feature until we are really sure it is stable but there are few downsides:

  • Enabling it by default for nuxt generate, even if super stable, is still a breaking change considering we essentially change caching strategy
  • Enabling it with a new flag (nuxt2 was target: 'static') is less intuitive for starter users and even more confusing to explain
  • Differing to enable, means also less usage of the feature and harder to ever stabilize it

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Atinuxcommented, Nov 15, 2022

Happy to disable it by default for nuxi build and enable it for nuxi generate

1reaction
kilobyte2007commented, Nov 14, 2022

Hey @pi0, yes we are using the nitro.prerender.routes option and filling it with routes that we need to prerender. The thing is that we wanted to use the routes option to prerender the pages in order to deploy as a static website but to still have the option to build in server mode in order to deploy on our staging server, where pages should not be pre-rendered at all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[LINUX][GUIDE] ROM Payload Image Dump - XDA Forums
If successful, you will see the payload.bin extracted from the ZIP file and all ROM Images created right after in the output directory ......
Read more >
تويتر \ التغريدات مع الردود بواسطة Alexander Lichter ( ...
Likely related to disabled payload extraction for `nuxi build` -. github.com. Disable payload extraction for `nuxi build` · Issue #8914 · nuxt/framework.
Read more >
Documentation: 9.6: JSON Functions and Operators
Function Return Type Example Result json_array_length(json). jsonb_array_length(jsonb) int 5 json_each_text(json). jsonb_each_text(jsonb) setof key text, value text key | value... json_object_keys(json). jsonb_object_keys(jsonb) setof text json_object_k...
Read more >
Guide to How to Recover and Prevent a Ransomware Attack
Use anti-virus and anti-malware software or other security policies to block known payloads from launching. Make frequent, comprehensive backups ...
Read more >
Solve common issues with JSON in SQL Server
I want to create a JSON text result from a simple SQL query on a single table. ... Prevent double-escaped JSON in FOR...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found