fix: support .env file

This commit is contained in:
diced 2022-10-27 19:38:54 -07:00
parent 7eb855de8f
commit 7ac574b230
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1

View file

@ -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),
});