fix: serverExternalPackages pour pptxgenjs, dagre, elkjs (Turbopack)
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 23s
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 23s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user