Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite dev fails with tunnelto (but vite preview works) #85

Open
dhbradshaw opened this issue Oct 12, 2023 · 1 comment
Open

Vite dev fails with tunnelto (but vite preview works) #85

dhbradshaw opened this issue Oct 12, 2023 · 1 comment

Comments

@dhbradshaw
Copy link

dhbradshaw commented Oct 12, 2023

Problem

Not sure why, but vite dev fails with tunnelto.

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.

@dhbradshaw dhbradshaw changed the title Vite dev fails with tunnelto Vite dev fails with tunnelto (but vite preview works) Oct 12, 2023
@MikeSpock
Copy link

I am having the same issue. Rather annoying, as this breaks Vite's hot reload feature. Any suggestion how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants