Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[legacy-framework] add ability to increase bodyParser size for queries & mutations #2328

Merged
merged 2 commits into from
May 10, 2021

Conversation

flybayer
Copy link
Member

@flybayer flybayer commented May 10, 2021

Closes: blitz-js/legacy-framework#114

What are the changes and their implications?

Add ability to increase bodyParser size for queries & mutations, same as for API routes.

You can export a config object from a blitz query or mutation like this:

export const config = {
  api: {
    bodyParser: {
      sizeLimit: "2mb",
    },
  },
};

Feature Checklist

kodiakhq[bot]
kodiakhq bot previously approved these changes May 10, 2021
@flybayer flybayer merged commit c9be82c into canary May 10, 2021
@flybayer flybayer deleted the 2210 branch May 10, 2021 22:40
@itsdillon itsdillon changed the title add ability to increase bodyParser size for queries & mutations [legacy-framework] add ability to increase bodyParser size for queries & mutations Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to increase bodyParse sizeLimit inside a mutation
2 participants