[del] env

This commit is contained in:
2023-09-01 18:02:06 +08:00
parent a554bb8473
commit 92be7cc355
5 changed files with 14 additions and 13 deletions

View File

@@ -1,5 +1,6 @@
import dayjs from "dayjs";
import "dayjs/locale/zh-tw";
import dotenv from "dotenv";
import * as path from "path";
import { WsServer } from "tsrpc";
import { BaseEnumerator } from "./Engine/CatanEngine/CoroutineV2/Core/BaseEnumerator";
@@ -10,10 +11,12 @@ import { serviceProto } from './shared/protocols/serviceProto';
BaseEnumerator.Init();
dayjs.locale("zh-tw")
dotenv.config();
// Create the Server
const port: number = +process.env.PORT || 3000
export const server = new WsServer(serviceProto, {
port: 3003,
port: port,
// Remove this to use binary mode (remove from the client too)
json: true
});