You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix!: only serve dev static assets from publish dir as fallback
When using `@netlify/vite-plugin`, `vite dev` (or e.g. `astro dev`) was incorrectly serving files
from the Netlify publish dir (e.g. `dist/`) instead of the source directory during vite dev.
I can't think of any reason to ever augment the directories passed to `@netlify/dev`'s options with
the default directory. In every known use case (`@netlify/vite-plugin`, `@netlify/nuxt`...), we pass
a known set of directories that should be used to serve static assets in dev. It seems reasonable to
use some reasonable defaults here for future use cases.
This commit makes this change.
Co-authored-by: serhalp <1377702+serhalp@users.noreply.github.com>
0 commit comments