Unverified Commit cad24f4b authored by Ben Gubler's avatar Ben Gubler Committed by GitHub

fix: update the config.api.responseLimit type (#82852)

`config.api.responseLimit` can also be [set to
`false`](https://github.com/vercel/next.js/issues/82842#issuecomment-3207638164).
Because of the limitations of type inference on JS files, we need to set
the type to `boolean`.

See
https://github.com/vercel/next.js/issues/82842#issuecomment-3207638164
parent b5b27206
...@@ -526,7 +526,7 @@ export function generateValidatorFile( ...@@ -526,7 +526,7 @@ export function generateValidatorFile(
config?: { config?: {
api?: { api?: {
bodyParser?: boolean | { sizeLimit?: string } bodyParser?: boolean | { sizeLimit?: string }
responseLimit?: string | number responseLimit?: string | number | boolean
externalResolver?: boolean externalResolver?: boolean
} }
runtime?: 'edge' | 'experimental-edge' | 'nodejs' | string // necessary unless config is exported as const runtime?: 'edge' | 'experimental-edge' | 'nodejs' | string // necessary unless config is exported as const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment