@dobbel Thanks again. This still doesn’t seem to solve the problem though. I tried setting vueRouterMode: 'hash'
in quasar.conf.js, and this has no effect on the generated index.html. It still contains script tags with absolute URLs, like <script src=/js/vendor.6e58a910.js>
. So I still can’t take this build output and mount it under different base paths.
The issue you linked to also seems to be addressing a different problem: how to have static assets loaded from a different server than the one where index.html lives.
In case my original post wasn’t clear, let me restate what I want to accomplish.
I’d like to be able to configure a quasar app such that I can run quasar build
once, and then take the build output from under dist/spa and deploy it to multiple servers mounted under different base paths. For example the app might be accessed on one server at https://example.com/, and on another server at https://example2.com/foo/.
Currently in order to deploy under multiple base paths, for each desired base path I have to run quasar build
again with publicPath
set to the desired base path, and then the generated app can only be deployed under the configured base path.