Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.

Commit 2218ab4

Browse files
committed
fix(env): update env reading order
1 parent 06ad225 commit 2218ab4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/am-scripts.js

100644100755
File mode changed.

helpers/env.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ const setup = nodeEnv => {
1111

1212
// https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
1313
const dotenvFiles = [
14-
`${dotenv}.${nodeEnv}.local`,
14+
dotenv,
1515
`${dotenv}.${nodeEnv}`,
16+
`${dotenv}.${nodeEnv}.local`,
1617
// Don't include `.env.local` for `test` environment
1718
// since normally you expect tests to produce the same
1819
// results for everyone
1920
nodeEnv !== 'test' && `${dotenv}.local`,
20-
dotenv,
2121
].filter(Boolean);
2222

2323
// Load environment variables from .env* files. Suppress warnings using silent

0 commit comments

Comments
 (0)