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

@@ -19,7 +19,7 @@ NEXT_PUBLIC_HUB_URL=
NEXT_PUBLIC_HUB_SERVER_URL= NEXT_PUBLIC_HUB_SERVER_URL=
NEXT_PUBLIC_DISPATCH_URL= NEXT_PUBLIC_DISPATCH_URL=
NEXT_PUBLIC_DISPATCH_SERVER_URL= NEXT_PUBLIC_DISPATCH_SERVER_URL=
DISCORD_SERVER_URL= CORE_SERVER_URL=
NEXT_PUBLIC_ESRI_ACCESS_TOKEN= NEXT_PUBLIC_ESRI_ACCESS_TOKEN=

View File

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

View File

@@ -1,7 +1,7 @@
import axios from "axios"; import axios from "axios";
const discordAxiosClient = axios.create({ 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) => { 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({ const report = await prisma.report.create({
data: req.body, data: req.body,
}); });
// TODO: send link to report on admin page to user
sendReportEmbed(report.id).catch((error) => { sendReportEmbed(report.id).catch((error) => {
console.error("Error sending report embed to Discord:", error); console.error("Error sending report embed to Discord:", error);
}); });

View File

@@ -46,11 +46,6 @@ export const MissionForm = () => {
refetchInterval: 10000, refetchInterval: 10000,
}); });
const { data: stations } = useQuery({
queryKey: ["stations"],
queryFn: () => getStationsAPI(),
});
const createMissionMutation = useMutation({ const createMissionMutation = useMutation({
mutationFn: createMissionAPI, mutationFn: createMissionAPI,
mutationKey: ["missions"], mutationKey: ["missions"],
@@ -292,6 +287,7 @@ export const MissionForm = () => {
form.setValue("missionKeywordAbbreviation", "VL_S"); form.setValue("missionKeywordAbbreviation", "VL_S");
form.setValue("hpgMissionString", "Verlegung:4_1_1_1-4_1"); form.setValue("hpgMissionString", "Verlegung:4_1_1_1-4_1");
} else { } else {
form.setValue("missionKeywordCategory", "V_VERLEGUNG");
form.setValue("missionKeywordAbbreviation", null as any); form.setValue("missionKeywordAbbreviation", null as any);
form.setValue("hpgMissionString", null); form.setValue("hpgMissionString", null);
} }

View File

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

View File

@@ -2,7 +2,7 @@
import axios from "axios"; import axios from "axios";
const discordAxiosClient = axios.create({ const discordAxiosClient = axios.create({
baseURL: process.env.DISCORD_SERVER_URL || "http://localhost:3005", baseURL: process.env.CORE_SERVER_URL || "http://localhost:3005",
}); });
export const renameMember = async (memberId: string, newName: string) => { export const renameMember = async (memberId: string, newName: string) => {