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

Server route payload configuration #33

Open
keezeden opened this issue Mar 15, 2022 · 0 comments
Open

Server route payload configuration #33

keezeden opened this issue Mar 15, 2022 · 0 comments

Comments

@keezeden
Copy link

Support plan

  • is this issue currently blocking your project? yes/no): yes
  • is this issue affecting a production system? (yes/no): yes

Context

  • node version: v17.2.0
  • module version: ^9.0.0
  • environment (e.g. node, browser, native): node
  • used with (e.g. hapi application, another framework, standalone, ...): Hapi application
  • any other relevant information: related to Hapi route config.payload.maxBytes property

How can we help?

Hi, currently Im facing an issue with image uploads, and receiving "Request entity too large". I've managed to track this down to the config.payload.maxBytes option included in the server.route configuration, by manually editing my local node_modules/graphi to contain the property. I was wondering if there was anyway I could either:

  • Externally configure this property / all config (through some parameter or config Im missing).
  • Mutate the Hapi route after registration occurs in the library.

Line in question

Thanks in advance for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant