mirror of
https://github.com/agrinman/tunnelto.git
synced 2026-04-25 16:56:00 +03:00
[GH-ISSUE #85] Vite dev fails with tunnelto (but vite preview works) #76
Labels
No labels
Need more info
bug
duplicate
enhancement
good first issue
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tunnelto#76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dhbradshaw on GitHub (Oct 12, 2023).
Original GitHub issue: https://github.com/agrinman/tunnelto/issues/85
Problem
Not sure why, but
vite devfails withtunnelto.vite devis 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
buildfolder (actually thedistfolder 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 previewallows 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.@MikeSpock commented on GitHub (Jan 30, 2024):
I am having the same issue. Rather annoying, as this breaks Vite's hot reload feature. Any suggestion how to fix this?
@DFanso commented on GitHub (Dec 26, 2025):
Did u try vite dev --host