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
The problem is the environment I deploy to routes to my app, meaning the origin root is not my app's root. (e.g. https://some-origin-here/my-app is the application root), as such all links to /assets/* are pointing to the wrong thing. it would be ideal (and way more portable) if the build defaulted to relative URLs.
I'm unable to find documentation outlining how I would build and output relative URLs.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
Describe the bug
Currently, no matter what I do, Vite builds and outputs something like:
The problem is the environment I deploy to routes to my app, meaning the origin root is not my app's root. (e.g.
https://some-origin-here/my-app
is the application root), as such all links to/assets/*
are pointing to the wrong thing. it would be ideal (and way more portable) if the build defaulted to relative URLs.I'm unable to find documentation outlining how I would build and output relative URLs.
Reproduction
This seems to be true of any Vite build app.
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: