This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Proxy in front of multiple entry points results in bad script paths #10516
Labels
You can continue the conversation there. Go to discussion →
Describe the bug
I'm putting an nginx server in front of a vite project running multiple entrypoints as follows:
When I navigate to a domain such as:
https://login.drschwinn.localdev
, I successfully load the root page, but all URLs generated by vite for resources are presumed to be based on being hosted in a subdirectory:Reproduction
https://stackblitz.com/edit/vitejs-vite-r5hbbj
Steps to reproduce
Obviously this requires a local proxy setup, but I've linked an example project with the three entrypoints as a starting point.
Basically take the above project, put any kind of proxy in front of it where a subdomain maps to the subfolder on the vite server.
System Info
Used Package Manager
yarn
Logs
See bug description. 🙂
Validations
Please note: It may be worth taking this bug into consideration along with #10487 and #9236
The text was updated successfully, but these errors were encountered: