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
|
// Enable standalone output for Docker
|
||||||
output: 'standalone',
|
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)
|
// Serve dynamically uploaded files via API route (public/ is read-only in production)
|
||||||
async rewrites() {
|
async rewrites() {
|
||||||
return [
|
return [
|
||||||
|
|||||||
Reference in New Issue
Block a user