From b9ec4d81fee3ec62d5fbdcff12d542510598a924 Mon Sep 17 00:00:00 2001 From: Lean Date: Sun, 30 Jul 2023 19:38:35 +0200 Subject: [PATCH] next config: add outputFileTracingExcludes property To try to avoid some weird stuff getting into the bundle and exploding the lambda size limit https://github.com/vercel/next.js/issues/42641 --- next.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 2c08ce57..385325b4 100644 --- a/next.config.js +++ b/next.config.js @@ -2,7 +2,13 @@ const nextConfig = { reactStrictMode: true, experimental: { - serverActions: true + serverActions: true, + outputFileTracingExcludes: { + '*': [ + './node_modules/@swc/core-linux-x64-gnu', + './node_modules/@swc/core-linux-x64-musl' + ] + } }, images: { remotePatterns: [