diff --git a/memento-note/next.config.ts b/memento-note/next.config.ts index 3947b9d..8c4358a 100644 --- a/memento-note/next.config.ts +++ b/memento-note/next.config.ts @@ -4,6 +4,10 @@ const nextConfig: NextConfig = { // Enable standalone output for Docker output: 'standalone', + // These server-side packages use Node.js internals (buffers, native modules, etc.) + // and must not be bundled by Turbopack — they are required directly by Node.js at runtime. + serverExternalPackages: ['pptxgenjs', 'dagre', 'elkjs'], + // Serve dynamically uploaded files via API route (public/ is read-only in production) async rewrites() { return [