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
This may not create an issue when working on a front-end setup, but when integrating with a back-end system like Laravel, Rails, or AdonisJS, it will break the loading of the asset.
This issue only appears in development since after a production build, the assets are served by the back-end.
Hey! 👋
When working with CSS, the HMR code of Vite removes the host in the URL.
This may not create an issue when working on a front-end setup, but when integrating with a back-end system like Laravel, Rails, or AdonisJS, it will break the loading of the asset.
This issue only appears in development since after a production build, the assets are served by the back-end.
--
As state per the documentation, we should add the full host to the URL of our assets.
After one HMR, this is rewritten like the following.
Therefore, it will not reach Vite server and will fail to load the file.
Related: #1539
The text was updated successfully, but these errors were encountered: