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
vite dev is a live server for js front ends that isn't compiled into an artifact but updates as code is saved.
Current Workaround
Something that I've found to work instead is vite preview, which won't change as you save, but will work for tunnelto.
Just using a basic server to serve the build folder (actually the dist folder in the vite case by default) also fails in my case because the api proxy that the vite live server uses doesn't come on by default.
vite preview allows you to serve from the artifact in a way that works for tunnelto and also access the api as though you were using a live build.
The text was updated successfully, but these errors were encountered:
dhbradshaw
changed the title
Vite dev fails with tunnelto
Vite dev fails with tunnelto (but vite preview works)
Oct 12, 2023
Problem
Not sure why, but
vite dev
fails withtunnelto
.vite dev
is a live server for js front ends that isn't compiled into an artifact but updates as code is saved.Current Workaround
Something that I've found to work instead is
vite preview
, which won't change as you save, but will work fortunnelto
.Just using a basic server to serve the
build
folder (actually thedist
folder in the vite case by default) also fails in my case because the api proxy that the vite live server uses doesn't come on by default.vite preview
allows you to serve from the artifact in a way that works for tunnelto and also access the api as though you were using a live build.The text was updated successfully, but these errors were encountered: