Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

feat: allow disabling payload extraction #7588

Merged
merged 1 commit into from Sep 16, 2022
Merged

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Sep 16, 2022

πŸ”— Linked issue

resolves nuxt/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

export default defineNuxtConfig({
  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
Copy link

netlify bot commented Sep 16, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 9e7319d
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/632446234282cf0008996a24

@pi0 pi0 mentioned this pull request Sep 16, 2022
6 tasks
@pi0 pi0 merged commit 5605f1c into main Sep 16, 2022
@pi0 pi0 deleted the feat/exp-payload-extraction branch September 16, 2022 10:14
@pi0 pi0 mentioned this pull request Sep 20, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to 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