mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 15:47:35 +00:00
fix: .env backwards compatibility
This commit is contained in:
+2
-3
@@ -1,10 +1,9 @@
|
||||
import {existsSync, readFileSync} from 'fs';
|
||||
import {banner} from './banner';
|
||||
|
||||
import dotenv from 'dotenv';
|
||||
import path from 'path';
|
||||
import {readFileSync} from 'fs';
|
||||
|
||||
if (path.resolve(__dirname, '../dotenv').length > 0) {
|
||||
if (existsSync(path.resolve(__dirname, '../dotenv'))) {
|
||||
dotenv.config({path: path.resolve(__dirname, '../dotenv')});
|
||||
} else {
|
||||
dotenv.config({path: path.resolve(__dirname, '../.env')});
|
||||
|
||||
Reference in New Issue
Block a user