coder + vite in browser wrong paths

I've searche daround and didn't see an answer to this. I'm able to start vite up just fine from vscode in the browser, where it launches to https://mydomain/.../proxy/3000 It seems to load the index.html file fine, but given all the paths being with /, it starts to try and load them directly from https://mydomain/src/App.jsx and so on. I've tried multiple attempts at fiddling with baseURL. I thought maybe someone more familiar with vite and this issue would know. Thanks.
3 Replies
Codercord
Codercord2mo ago
<#1343636256126402610>
Category
Other
Product
code-server
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys2mo ago
you have to configure vite to use a relative path or use this specific path (/proxy/3000) this is something that needs to be handled on the app's side (vite in this case) when using sub-path reverse-proxying
Codercord
Codercord2w ago
@Phorcys closed the thread.

Did you find this page helpful?