1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-26 10:05:10 +00:00
This commit is contained in:
zumbiepig
2024-08-31 08:14:02 -07:00
parent 2f1f532df5
commit 583617d8df
9 changed files with 30 additions and 18 deletions

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import { join } from 'path';
import { env } from 'bun';
import express, { json, urlencoded } from 'express';
@@ -14,7 +15,7 @@ import serveStatic from 'serve-static';
import { indexRouter } from './routes/index.ts';
const BASE_DIR = join(import.meta.dir, 'public');
const PORT = env.PORT || 3000;
const PORT = env.PORT ?? 3000;
const debugLogger = debug('app:server');
const isDev = env.NODE_ENV === 'development';