Skip to content

Instantly share code, notes, and snippets.

@SiegeSailor
Last active July 1, 2021 09:13
Show Gist options
  • Save SiegeSailor/f8af3883f5792f258369395ab3edb83a to your computer and use it in GitHub Desktop.
Save SiegeSailor/f8af3883f5792f258369395ab3edb83a to your computer and use it in GitHub Desktop.
Use env-cmd in NPM scripts.
{
"scripts": {
"host-uat": "env-cmd -f .env.uat npm run build && firebase deploy --only hosting:uat",
"host-prod": "env-cmd -f .env.production npm run build && firebase deploy --only hosting:production"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment