✨ load .env file
This commit is contained in:
parent
4a815d302a
commit
b70adcedba
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -22,6 +22,7 @@
|
||||
"dependencies": {
|
||||
"bcrypt": "^5.0.0",
|
||||
"body-parser": "^1.19.0",
|
||||
"dotenv": "^8.2.0",
|
||||
"express": "^4.17.1",
|
||||
"express-validator": "^6.9.2",
|
||||
"fosscord-server-util": "github:fosscord/fosscord-server-util",
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
process.on("uncaughtException", console.error);
|
||||
process.on("unhandledRejection", console.error);
|
||||
|
||||
import { config } from "dotenv";
|
||||
config();
|
||||
import { DiscordServer } from "./Server";
|
||||
|
||||
const server = new DiscordServer({ port: 3000 });
|
||||
|
||||
Reference in New Issue
Block a user