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

fix(vite): unset build.watch options for production build #5958

Merged
merged 1 commit into from
Jul 17, 2022
Merged

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Jul 17, 2022

πŸ”— Linked issue

Resolves nuxt/nuxt#14320

❓ 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

A regression was introduced in rc.5 with #5632 by adding build.watch key. The change likely only unrevealed an issue in vite. When this key exists for production, the server build promise succeeds but no output is generated! Removing watch key from production seems to solve this issue. This PR also refactors config placement to the shared one for more readability.

πŸ“ Checklist

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

@netlify
Copy link

netlify bot commented Jul 17, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 4e5a592
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62d423686abbf3000915d482

@pi0
Copy link
Member Author

pi0 commented Jul 17, 2022

We likely need to investigate it sometime later or add an output checker for server.mjs. Vite failed build was completely silent!

@pi0 pi0 mentioned this pull request Jul 17, 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.

[RC.5] Rollup error: Could not load .nuxt/dist/server/server.mjs
2 participants