We're working on application with multiple developers.
In order for us to all test on the same dev server we're using a sites style setup:
i.e. https://thisisourdomain.com/node/developerid/
Where "developerid" is their username on the system.
Example: Lets say my id is raymondlc
https://thisisourdomain.com/node/raymondlc should load my source code (I'm running the application on a specific port) with the redirect being handled by Apache.
As it stands, Apache performs the redirect however if we don't adjust the baseURL the the generated app.js, and /img/ directories have invalid paths (they are fetched at https://thisisourdomain.com/app.[hash].js and https://thisisourdomain.com/img/image_name.png).
I've tried changing:
router: {
base: "/"
...
to
router: {
base: "/node/raymondlc/"
...
However this results in "Cannot GET /" when I visit https://thisisourdomain.com/node/raymondlc in the browser.
We CANNOT use subdomains i.e. https://raymondlc92.thisisourdomain.com/ as:
1) We don't control our DNS (it's managed by the institution) so we must add manual redirects to each subdomain. 2) We use HTTPS and our cert does not apply to *.thisisourdomain.com
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1738">#c1738</a>)</em></sub></div>