🐛 fix .env file not loading
This commit is contained in:
+2
-1
@@ -1,7 +1,8 @@
|
||||
import { CDNServer } from "./Server";
|
||||
import dotenv from "dotenv";
|
||||
dotenv.config();
|
||||
|
||||
import { CDNServer } from "./Server";
|
||||
|
||||
if (process.env.STORAGE_LOCATION) {
|
||||
if (!process.env.STORAGE_LOCATION.startsWith("/")) {
|
||||
process.env.STORAGE_LOCATION = __dirname + "/../" + process.env.STORAGE_LOCATION;
|
||||
|
||||
Reference in New Issue
Block a user