diff --git a/.env.prod b/.env.prod index 95155f1f..185f86ae 100644 --- a/.env.prod +++ b/.env.prod @@ -19,7 +19,7 @@ NEXT_PUBLIC_HUB_URL=https://hub.premiumag.de NEXT_PUBLIC_HUB_SERVER_URL=https://api.hub.premiumag.de NEXT_PUBLIC_DISPATCH_URL=https://dispatch.premiumag.de NEXT_PUBLIC_DISPATCH_SERVER_URL=https://api.dispatch.premiumag.de -DISCORD_SERVER_URL=http://discord-server +DISCORD_SERVER_URL=http://discord-server:3000 NEXT_PUBLIC_ESRI_ACCESS_TOKEN= @@ -51,7 +51,7 @@ REDIS_PORT=6379 # ─────────────────────────────────────────────── HUB_SERVER_PORT=3000 -DISCORD_SERVER_PORT=3005 +DISCORD_SERVER_PORT=3000 # ─────────────────────────────────────────────── # 📚 Moodle # ─────────────────────────────────────────────── diff --git a/apps/discord-server/index.ts b/apps/discord-server/index.ts index 3c10d455..96a11098 100644 --- a/apps/discord-server/index.ts +++ b/apps/discord-server/index.ts @@ -2,7 +2,6 @@ import "dotenv/config"; import express from "express"; import { createServer } from "http"; import router from "routes/router"; -import cookieParser from "cookie-parser"; import cors from "cors"; import "modules/chron"; @@ -11,7 +10,6 @@ const server = createServer(app); app.use(cors()); app.use(express.json()); -app.use(cookieParser()); app.use(router); server.listen(process.env.DISCORD_SERVER_PORT, () => { diff --git a/apps/discord-server/package.json b/apps/discord-server/package.json index ff85adaf..93ac4140 100644 --- a/apps/discord-server/package.json +++ b/apps/discord-server/package.json @@ -12,7 +12,6 @@ "devDependencies": { "@repo/db": "workspace:*", "@repo/typescript-config": "workspace:*", - "@types/cookie-parser": "^1.4.8", "@types/cors": "^2.8.18", "@types/express": "^5.0.2", "@types/node": "^22.15.29",