fix: support .env file
This commit is contained in:
parent
7eb855de8f
commit
7ac574b230
1 changed files with 6 additions and 0 deletions
|
@ -39,6 +39,12 @@ export default function readConfig() {
|
|||
if (existsSync('.env.local')) {
|
||||
const contents = readFileSync('.env.local');
|
||||
|
||||
expand({
|
||||
parsed: parse(contents),
|
||||
});
|
||||
} else if (existsSync('.env')) {
|
||||
const contents = readFileSync('.env');
|
||||
|
||||
expand({
|
||||
parsed: parse(contents),
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue