fix core-server URL in prod

This commit is contained in:
PxlLoewe
2025-07-04 20:43:14 -07:00
parent 075d34a01c
commit 80d2704852
7 changed files with 6 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
DISPATCH_SERVER_PORT=3002
REDIS_HOST=localhost
REDIS_PORT=6379
DISCORD_SERVER_URL=http://core-server
CORE_SERVER_URL=http://core-server
DISPATCH_APP_TOKEN=dispatch
LIVEKIT_API_KEY=APIAnsGdtdYp2Ho
LIVEKIT_API_SECRET=tdPjVsYUx8ddC7K9NvdmVAeLRF9GeADD6Fedm1x63fWC

View File

@@ -1,7 +1,7 @@
import axios from "axios";
const discordAxiosClient = axios.create({
baseURL: process.env.DISCORD_SERVER_URL || "https://discord.com/api/v10",
baseURL: process.env.CORE_SERVER_URL,
});
export const renameMember = async (memberId: string, newName: string) => {

View File

@@ -10,8 +10,6 @@ router.put("/", async (req, res) => {
const report = await prisma.report.create({
data: req.body,
});
// TODO: send link to report on admin page to user
sendReportEmbed(report.id).catch((error) => {
console.error("Error sending report embed to Discord:", error);
});