Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
/frameworkPublic archive

feat: allow disabling payload extraction - #7588

Merged
pi0 merged 1 commit into
mainfrom
feat/exp-payload-extraction
Sep 16, 2022
Merged

feat: allow disabling payload extraction#7588
pi0 merged 1 commit into
mainfrom
feat/exp-payload-extraction

Conversation

@pi0

@pi0pi0 commented Sep 16, 2022

Copy link
Copy Markdown
Member

🔗 Linked issue

resolvesnuxt/nuxt#14931

❓ 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)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

This PR allows disabling payload extraction with nuxi generate introduced in RC.10 (#6455) using experimental.payloadExtraction: false

exportdefaultdefineNuxtConfig({experimental: {payloadExtraction: false}})

Remarks:

  • Even by disabling the (static) payload extraction, /_payload.js endpoint is still available for renderer. It is a separate feature
  • I've confirmed tree-shaking keeps working with refactors

📝 Checklist

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

@netlify

netlifyBot commented Sep 16, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt3-docs canceled.

NameLink
🔨 Latest commit9e7319d
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt3-docs/deploys/632446234282cf0008996a24

@pi0pi0 mentioned this pull request Sep 16, 2022
6 tasks
@pi0
pi0 merged commit 5605f1c into mainSep 16, 2022
@pi0
pi0 deleted the feat/exp-payload-extraction branch September 16, 2022 10:14
@pi0pi0 mentioned this pull request Sep 20, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

allow disabling payload extraction on prerender

2 participants

@pi0@danielroe