@siadhr-programmer May be this could be helpful https://stackoverflow.com/questions/69744253/vite-build-always-using-static-paths
Apr 4, 2024
4
Level 1
Vite Asset relative and absolute URL issue
when deploying laravel web app to the server, assets path use absolute path instead of relative path, this affecting performance since every time visiting page resources are called using network now rendered resources href and src attributes looks like href="https://domanin.com/build/asset-name.js" i need it to be rendered with relative url like href="/build/asset-name.js"
thanks in advance
Please or to participate in this conversation.