My app is blank/empty when deployed on remote server but works fine locally (same static site build in both cases). It works on remote server only if I provide the full absolute path in my Axios calls, however if I use Axios's baseURL option in nuxt.config.js then the app is blank on remote server.
What's going on?
.env:
BASE_URL=https://path.to.cdn
nuxt.config.js:
publicRuntimeConfig: {
baseURL: process.env.BASE_URL,
axios: {
browserBaseURL: process.env.BASE_URL
}
},
axios: {
baseURL: process.env.BASE_URL,
},