Skip to content

Commit

Permalink
next config: add outputFileTracingExcludes property
Browse files Browse the repository at this point in the history
To try to avoid some weird stuff getting into the bundle and exploding the lambda size limit vercel/next.js#42641
  • Loading branch information
lean1190 committed Jul 30, 2023
1 parent dd08100 commit b9ec4d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit b9ec4d8

Please sign in to comment.