Skip to content

Commit

Permalink
Add dotenv config
Browse files Browse the repository at this point in the history
  • Loading branch information
jloh02 committed Jan 20, 2024
1 parent 0c3fb7b commit 3ffbe3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import express from "express";
import morgan from "morgan";
import cors from "cors";
import { generateRoomCode } from "./utils/calc.js";
import "dotenv";
import dotenv from "dotenv";
import { Server } from "socket.io";
import { Chess } from "chess.js";

dotenv.config();

const ENVIRONMENT = process.env.ENV || "dev";

const chess = new Chess();
Expand Down

0 comments on commit 3ffbe3a

Please sign in to comment.