netlify / netlify/framework-adapters

Using `@vite/netlify-plugin` causes Vite to serve `dist` instead of usual `vite dev` behaviour

Open
#10 3 comments 0 reactions 1 assignee View on GitHub

@serhalp is already working on this.

Since Oct 30, 2025.

Dominant language
TypeScript
Stars
1
Forks
3
Avg merge
1d 7h
Merged PRs (30d)
9

Description

Hi, I've noticed a very odd issue with your plugin. It appears @netlify/vite-plugin alters Vite's regular vite dev behaviour from serving transformed source to instead serving the dist folder, just like vite preview.

Here's a reproduction:
https://github.com/alextompkins/netlify-vite-plugin-serve-dist-issue

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.