Skip to content
Discussion options

You must be logged in to vote

The reason it fails is because npm run dev will spin a server to host your assets like css and js available through port 5173 so that it can hot-reload them. When using herd share you only proxy port 80 or 443 depending on your configuration. So your styles and scripts won't be available.

If you want to develop while testing with herd share I recommend to run vite build -w instead which will build your assets constantly while making changes.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@nathangross
Comment options

Answer selected by nathangross
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@benmcm1994
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants