fix: add puppeteer packages to serverExternalPackages to prevent Next.js build errors
This commit is contained in:
1 parent
af8b59e024
commit
0bf6133775
1 file changed
+10
-1
+10
-1
@@ -36,7 +36,16 @@ const securityHeaders = [
|
||||
const nextConfig: NextConfig = {
|
||||
deploymentId: resolveDeploymentId(),
|
||||
turbopack: {},
|
||||
serverExternalPackages: ["mariadb", "lzma", "sharp", "pino", "pino-pretty"],
|
||||
serverExternalPackages: [
|
||||
"mariadb",
|
||||
"lzma",
|
||||
"sharp",
|
||||
"pino",
|
||||
"pino-pretty",
|
||||
"puppeteer",
|
||||
"puppeteer-extra",
|
||||
"puppeteer-extra-plugin-stealth",
|
||||
],
|
||||
|
||||
// Enable React Compiler for automatic memoization
|
||||
reactCompiler: true,
|
||||
|
||||
Reference in new issue
Block a user