mirror of
https://github.com/stoatchat/service-admin-panel.git
synced 2026-07-01 21:44:47 -04:00
fix: use dotenv to load .env.local file
This commit is contained in:
+1
-1
Submodule app/panel/mod updated: aed4eb5b4f...7f839aa6cc
@@ -20,6 +20,7 @@
|
||||
"archiver-zip-encrypted": "^2.0.0",
|
||||
"babel-plugin-react-compiler": "^0.0.0-experimental-1f3db3d-20240818",
|
||||
"dayjs": "^1.11.10",
|
||||
"dotenv": "^16.4.7",
|
||||
"eslint-plugin-react-compiler": "experimental",
|
||||
"lru-cache": "^10.2.0",
|
||||
"mongodb": "^6.3.0",
|
||||
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
red,
|
||||
yellow,
|
||||
} from "@colors/colors";
|
||||
import { config } from "dotenv";
|
||||
import { readFile, readdir } from "fs/promises";
|
||||
import { createServer } from "http";
|
||||
import next from "next";
|
||||
@@ -15,6 +16,8 @@ import { parse } from "url";
|
||||
|
||||
import { createLogger } from "./logger";
|
||||
|
||||
config({ path: ".env.local" });
|
||||
|
||||
const dev = process.env.NODE_ENV !== "production";
|
||||
const hostname = process.env.HOST || "localhost";
|
||||
const port = parseInt(process.env.PORT || "3000");
|
||||
|
||||
Reference in New Issue
Block a user