fix(pitch-deck): resolve Docker build failures — nodemailer webpack + jose Edge Runtime
Some checks failed
Build pitch-deck / build-push-deploy (push) Failing after 45s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 35s
CI / test-python-voice (push) Successful in 41s
CI / test-bqas (push) Successful in 39s

- 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 <noreply@anthropic.com>
This commit is contained in:
Sharang Parnerkar
2026-04-16 20:31:23 +02:00
parent f75aef2a4a
commit 5d71a371d6
2 changed files with 2 additions and 1 deletions

View File

@@ -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 = [