From 98e05193ec57f6ac5e27d9f79e4522a46338be10 Mon Sep 17 00:00:00 2001 From: Ola Date: Fri, 22 May 2026 22:16:07 +0200 Subject: [PATCH] build: force-include node-mailjet in standalone output --- next.config.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index 491a8d9..6b2815b 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -5,6 +5,11 @@ const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts'); /** @type {import('next').NextConfig} */ const nextConfig = { output: 'standalone', + // node-mailjet uses dynamic requires that Next's static tracer misses, so + // it never lands in .next/standalone/node_modules. Force-include it. + outputFileTracingIncludes: { + '**': ['./node_modules/node-mailjet/**/*'], + }, experimental: { serverActions: { bodySizeLimit: '2mb',