Skip to content

Commit 217132b

Browse files
committed
use env for webhook url
1 parent dd36884 commit 217132b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/web/app/api/desktop/[...route]/root.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ app.post(
2929
const user = c.get("user");
3030

3131
try {
32-
const discordWebhookUrl =
33-
"https://discord.com/api/webhooks/1428630396051914873/jfyxAtjTgZ3otj81x1BWdo18m6OMjoM3coeDUJutTDhp4VikrrAcdLClfl2kjvhLbOn2"; // serverEnv().DISCORD_FEEDBACK_WEBHOOK_URL;
32+
const discordWebhookUrl = serverEnv().DISCORD_LOGS_WEBHOOK_URL;
3433
if (!discordWebhookUrl)
3534
throw new Error("Discord webhook URL is not configured");
3635

packages/env/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function createServerEnv() {
4040
STRIPE_SECRET_KEY: z.string().optional(),
4141
STRIPE_WEBHOOK_SECRET: z.string().optional(),
4242
DISCORD_FEEDBACK_WEBHOOK_URL: z.string().optional(),
43+
DISCORD_LOGS_WEBHOOK_URL: z.string().optional(),
4344
OPENAI_API_KEY: z.string().optional(),
4445
GROQ_API_KEY: z.string().optional(),
4546
INTERCOM_SECRET: z.string().optional(),

0 commit comments

Comments
 (0)