From 1f758cc9bdc95289e5e312efbbc4b2f35ef68160 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Tue, 11 Jun 2024 00:31:43 +0200 Subject: [PATCH] Fix Next.js builds --- sample/next-app/next.config.js | 1 + sample/next-pages/next.config.js | 1 + 2 files changed, 2 insertions(+) diff --git a/sample/next-app/next.config.js b/sample/next-app/next.config.js index 92157b19b..d7a776725 100644 --- a/sample/next-app/next.config.js +++ b/sample/next-app/next.config.js @@ -13,6 +13,7 @@ const nextConfig = { }, }, }, + swcMinify: false, webpack: (config) => { /** * Critical: prevents " ⨯ ./node_modules/canvas/build/Release/canvas.node diff --git a/sample/next-pages/next.config.js b/sample/next-pages/next.config.js index 51758d8ec..e88fb926d 100644 --- a/sample/next-pages/next.config.js +++ b/sample/next-pages/next.config.js @@ -17,6 +17,7 @@ const nextConfig = { }, }, }, + swcMinify: false, webpack: (config) => { /** * Critical: prevents " ⨯ ./node_modules/canvas/build/Release/canvas.node