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: {