You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set an environment variable in .env.production file:
VUE_APP_S3D_BUCKET=production-bucket-name
And deployed my app with this command:
npm run build --mode production && vue-cli-service s3-deploy
I checked that the NODE_ENV is set to production correctly, so I expected that the new s3 bucket will be created with name production-bucket-name, but it was development-bucket-name as written in vue.config.js file:
When we build we tell the mecanism to look for production variables, yarn build --mode production.
If the build have the good variable, the deploy also need to be inform where to get the variable so we need to specify the mode in yarn deploy --mode production.
Also, My app was with vue-cli, if I was using npm the commande would be this one : npm run build -- --mode=production and npm run deploy -- --mode=production if I want the params to be pass to vue-cli.
I set an environment variable in
.env.production
file:And deployed my app with this command:
I checked that the
NODE_ENV
is set toproduction
correctly, so I expected that the new s3 bucket will be created with nameproduction-bucket-name
, but it wasdevelopment-bucket-name
as written invue.config.js
file:What am I missing here?
The text was updated successfully, but these errors were encountered: