From 57e0a230217311871af54040480b1b0e8acb1676 Mon Sep 17 00:00:00 2001 From: chahinebrini Date: Thu, 4 Jun 2026 10:35:33 +0200 Subject: [PATCH] =?UTF-8?q?fix(nitro):=20externalize=20@parse/node-apn=20+?= =?UTF-8?q?=20imapflow=20=E2=80=94=20CJS-extends-Pattern=20bricht=20beim?= =?UTF-8?q?=20Bundle=20(calls/ring=20+=20mail/scan=20500)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/nitro.config.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/backend/nitro.config.ts b/backend/nitro.config.ts index d1459dc..641ad04 100644 --- a/backend/nitro.config.ts +++ b/backend/nitro.config.ts @@ -10,9 +10,15 @@ export default defineNitroConfig({ // Default-publicAssets greift nicht zuverlässig wenn srcDir auf "server" zeigt. publicAssets: [{ baseURL: "/", dir: "../public", maxAge: 60 * 60 }], - // Supabase als external dep — nicht bundlen + // Supabase + @parse/node-apn + imapflow als external deps — nicht bundlen. + // node-apn + imapflow nutzen CJS-extends/inherits-Patterns, die brechen beim + // Bundlen zu ESM ("Class extends value [object Module] is not a constructor + // or null" / "superCtor.prototype must be of type object"). Müssen als externe + // node_modules-Requires bleiben. externals: { - inline: [/^(?!@supabase\/supabase-js)/], + inline: [ + /^(?!@supabase\/supabase-js)(?!@parse\/node-apn)(?!imapflow)/, + ], }, imports: {