Skip to content

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

@alextompkins

Description

@alextompkins

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

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions