diff --git a/packages/next/src/server/app-render/action-handler.ts b/packages/next/src/server/app-render/action-handler.ts index 44918a6c09e69..82de9b13c36ea 100644 --- a/packages/next/src/server/app-render/action-handler.ts +++ b/packages/next/src/server/app-render/action-handler.ts @@ -490,7 +490,7 @@ export async function handleAction({ throw new ApiError( 413, `Body exceeded ${readableLimit} limit. -To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/server-actions#size-limitation` +To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/functions/server-actions#size-limitation` ) } diff --git a/packages/next/src/server/config.ts b/packages/next/src/server/config.ts index aa5f24fd729bd..58ecb824f6bc5 100644 --- a/packages/next/src/server/config.ts +++ b/packages/next/src/server/config.ts @@ -503,7 +503,7 @@ function assignDefaults( ) if (isNaN(value) || value < 1) { throw new Error( - 'Server Actions Size Limit must be a valid number or filesize format lager than 1MB: https://nextjs.org/docs/app/api-reference/server-actions#size-limitation' + 'Server Actions Size Limit must be a valid number or filesize format lager than 1MB: https://nextjs.org/docs/app/api-reference/functions/server-actions#size-limitation' ) } }