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
Now I enable port forwading on that code server to forward dev server 5173, finally I get a url like that: https://HOST/a/b/proxy/5173/
Now it asking for https://HOST/@vite/client.
Obviously it don't exist. How can I make that correctly point to https://HOST/a/b/proxy/5173/@vite/client?
I have multiple dev server on that HOST so I don't want configure it directly on nginx.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a dev code-server with prefix
a/b
, nginx like that:Now I enable port forwading on that code server to forward dev server 5173, finally I get a url like that:
https://HOST/a/b/proxy/5173/
Now it asking for
https://HOST/@vite/client
.Obviously it don't exist. How can I make that correctly point to
https://HOST/a/b/proxy/5173/@vite/client
?I have multiple dev server on that HOST so I don't want configure it directly on nginx.
Current
vite.config.ts
:I tried several settings for base and it seems the vite cannot correctly realize the nginx prefix
a/b
.Beta Was this translation helpful? Give feedback.
All reactions