Skip to content

Commit

Permalink
[Docs]: Fix CLI link to server actions size limit docs (#58174)
Browse files Browse the repository at this point in the history
This PR fixes the terminal link to server actions size limitations for body size limit. The link is wrong and sending people to a 404
  • Loading branch information
molebox authored Nov 9, 2023
1 parent fd7ea11 commit bbb730e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/next/src/server/app-render/action-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
}
}
Expand Down

0 comments on commit bbb730e

Please sign in to comment.