-
-
Save andreasvirkus/8a756fd61193f8b73de4dd21714eaae5 to your computer and use it in GitHub Desktop.
Running npm scripts with env variables; the comfy way.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NODE_ENV=development |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export $(cat .env) | |
npm run dev # NODE_ENV holds the value 'development' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment