Skip to content

Commit be92d7c

Browse files
committed
Lazy-load Discord review bot in workflow step.
This avoids eager bundling of Discord websocket dependencies during workflow route compilation, reducing risk of Turbopack build regressions in production deployments.
1 parent a6dabfd commit be92d7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/workflows/luma-sync/steps/discord.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { postEventReviewCard } from "@/lib/discord/review-bot";
21
import type { LumaSyncCreatedEvent } from "../types";
32

43
export type DiscordReviewThread = {
@@ -12,6 +11,7 @@ export async function createDiscordReviewThreadForEvent(
1211
event: LumaSyncCreatedEvent,
1312
): Promise<DiscordReviewThread> {
1413
"use step";
14+
const { postEventReviewCard } = await import("@/lib/discord/review-bot");
1515
const message = await postEventReviewCard({
1616
eventId: event.id,
1717
name: event.name,

0 commit comments

Comments
 (0)