Add NEXT_API_BODY_SIZE_LIMIT config (#325)

* Add `NEXT_API_BODY_SIZE_LIMIT` config

* Add NEXT_API_BODY_SIZE_LIMIT env var to more files
This commit is contained in:
Redox
2026-01-24 22:22:32 +01:00
committed by GitHub
parent 927bf2fe69
commit 0ca9c1d0e6
6 changed files with 18 additions and 1 deletions

View File

@@ -95,6 +95,12 @@ const config = {
swcPlugins: [["@lingui/swc-plugin", {}]],
},
api: {
bodyParser: {
sizeLimit: env("NEXT_API_BODY_SIZE_LIMIT") || '1mb',
},
},
async rewrites() {
return [
{