Skip to content

Commit f4db8ab

Browse files
committed
Disable Discord gateway webhook forwarding in cron listener.
This keeps gateway event handling in-process so Discord message events no longer bounce through Vercel-protected webhook URLs that return 401.
1 parent f5f2d93 commit f4db8ab

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/src/app/api/discord/gateway/route.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ export async function GET(request: Request): Promise<Response> {
3030
await bot.initialize();
3131
const discordAdapter = bot.getAdapter("discord");
3232
const durationMs = 600 * 1000;
33-
const webhookUrl = `${mainConfig.instance.origin}/api/webhooks/discord`;
3433

3534
return discordAdapter.startGatewayListener(
3635
{ waitUntil: (task) => after(() => task) },
3736
durationMs,
3837
undefined,
39-
webhookUrl,
4038
);
4139
} catch (error) {
4240
const message = error instanceof Error ? error.message : "Unknown error";

0 commit comments

Comments
 (0)