From 5d71a371d62e9700d34d065dc94f211a8d7bcbce Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Thu, 16 Apr 2026 20:31:23 +0200 Subject: [PATCH] =?UTF-8?q?fix(pitch-deck):=20resolve=20Docker=20build=20f?= =?UTF-8?q?ailures=20=E2=80=94=20nodemailer=20webpack=20+=20jose=20Edge=20?= =?UTF-8?q?Runtime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add nodemailer to serverExternalPackages so webpack doesn't try to bundle fs/net/dns built-ins (was fatal build error) - Import jwtVerify from jose/jwt/verify instead of the full jose index to avoid pulling in JWE deflate code incompatible with Edge Runtime Co-Authored-By: Claude Sonnet 4.6 --- pitch-deck/middleware.ts | 2 +- pitch-deck/next.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pitch-deck/middleware.ts b/pitch-deck/middleware.ts index 6efe0a0..5a0f33d 100644 --- a/pitch-deck/middleware.ts +++ b/pitch-deck/middleware.ts @@ -1,5 +1,5 @@ import { NextRequest, NextResponse } from 'next/server' -import { jwtVerify } from 'jose' +import { jwtVerify } from 'jose/jwt/verify' // Paths that bypass auth entirely const PUBLIC_PATHS = [ diff --git a/pitch-deck/next.config.js b/pitch-deck/next.config.js index c77ee3a..8fc2899 100644 --- a/pitch-deck/next.config.js +++ b/pitch-deck/next.config.js @@ -5,6 +5,7 @@ const nextConfig = { typescript: { ignoreBuildErrors: true, }, + serverExternalPackages: ['nodemailer'], async headers() { return [ {