Skip to content

Commit 1c4a53d

Browse files
committed
Externalize Discord websocket packages from Next.js server bundling.
This avoids Turbopack ESM placement errors for zlib-sync when building routes that import the Discord chat adapter.
1 parent 4d22bf4 commit 1c4a53d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/next.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { NextConfig } from "next";
33
import { withWorkflow } from "workflow/next";
44

55
const nextConfig: NextConfig = {
6+
serverExternalPackages: ["discord.js", "@discordjs/ws", "zlib-sync"],
67
images: {
78
remotePatterns: [
89
{

0 commit comments

Comments
 (0)