From 1d79ebbda3c3f5cd68a757e3729f097ee35f9374 Mon Sep 17 00:00:00 2001 From: david-loe <56305409+david-loe@users.noreply.github.com> Date: Thu, 30 Nov 2023 08:46:33 +0100 Subject: [PATCH] fix: body exeeded undefined limit (#679) * fixed bodySizeLimit * fix: update marketing config --------- Co-authored-by: Lucas Smith --- apps/marketing/next.config.js | 4 +++- apps/web/next.config.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/marketing/next.config.js b/apps/marketing/next.config.js index 41a80c12c..ef89f84b5 100644 --- a/apps/marketing/next.config.js +++ b/apps/marketing/next.config.js @@ -20,8 +20,10 @@ const FONT_CAVEAT_BYTES = fs.readFileSync( /** @type {import('next').NextConfig} */ const config = { experimental: { - serverActionsBodySizeLimit: '10mb', outputFileTracingRoot: path.join(__dirname, '../../'), + serverActions: { + bodySizeLimit: '50mb' + }, }, reactStrictMode: true, transpilePackages: [ diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 97af05ab5..29a7397c0 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -22,7 +22,9 @@ const config = { output: process.env.DOCKER_OUTPUT ? 'standalone' : undefined, experimental: { outputFileTracingRoot: path.join(__dirname, '../../'), - serverActionsBodySizeLimit: '50mb', + serverActions: { + bodySizeLimit: '50mb' + }, }, reactStrictMode: true, transpilePackages: [