Closed yubing24 closed 5 years ago
I think I figured out the issue. In nuxt.config.js
, instead of using:
modules: [
[ '@nuxtjs/axios',
{
baseURL: process.env.BASE_URL,
https: true,
retries: 3
}
]
]
I need to change it to:
modules: [
[ '@nuxtjs/axios',
{
baseURL: process.env.BASE_URL || 'https://my.api.endpoint',
https: true,
retries: 3
}
]
]
Is there a way that I can inject process.env.BASE_URL
during build
or generate
?
Version
v5.1.0
Reproduction link
https://github.com/DancesportSoftware/das-frontend/tree/develop
Steps to reproduce
The actual dependency is v5.3.6, but there is no option in the version dropdown selection.
yarn install
yarn build
What is expected ?
Should build correctly without any error
What is actually happening?
Additional comments?
package.json: