Skip to content

chore: fix dev server for nuxt app#320

Merged
antfu merged 3 commits into
mainfrom
fix-nuxt-dev-server
May 8, 2026
Merged

chore: fix dev server for nuxt app#320
antfu merged 3 commits into
mainfrom
fix-nuxt-dev-server

Conversation

@webfansplz

Copy link
Copy Markdown
Member

Caused by 4c2f6c9

image

Copilot AI review requested due to automatic review settings May 8, 2026 04:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts Nuxt app configuration in the devtools packages to restore correct dev-server asset serving behavior (likely around the /_nuxt/ assets path) after the referenced regression.

Changes:

  • Add a dev-only VITE_BASE that points Vite’s base to ${BASE}_nuxt/ while keeping production behavior unchanged.
  • Enable experimental.viteEnvironmentApi in Nuxt config (for the Nuxt/Vite builder integration).
  • Apply the same fix consistently across the Vite, Rolldown, and Self-Inspect Nuxt apps.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/vite/src/nuxt.config.ts Sets a dev-only Vite base under /_nuxt/ and enables viteEnvironmentApi.
packages/self-inspect/src/nuxt.config.ts Same dev-only Vite base adjustment and viteEnvironmentApi enablement (also adds node:process import).
packages/rolldown/src/nuxt.config.ts Same dev-only Vite base adjustment and viteEnvironmentApi enablement.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pkg-pr-new

pkg-pr-new Bot commented May 8, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@vitejs/devtools@320
npm i https://pkg.pr.new/@vitejs/devtools-kit@320
npm i https://pkg.pr.new/@vitejs/devtools-rolldown@320
npm i https://pkg.pr.new/@vitejs/devtools-self-inspect@320

commit: ae034fd

@antfu antfu merged commit bfbec25 into main May 8, 2026
9 checks passed
@antfu antfu deleted the fix-nuxt-dev-server branch May 8, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants