netlify / netlify/framework-adapters
Using `@vite/netlify-plugin` causes Vite to serve `dist` instead of usual `vite dev` behaviour
Open
@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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.