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

Small http server tweaks #1441

Merged
merged 3 commits into from
Nov 10, 2020
Merged

Small http server tweaks #1441

merged 3 commits into from
Nov 10, 2020

Conversation

peterp
Copy link
Contributor

@peterp peterp commented Nov 5, 2020

I came across a few bugs in the http-servers, both for dev and production. This PR fixes:

  • The list of serverless functions have relative paths, so if you visit http://localhost:8910/.redwood/ and see a list of functions you can actually click on them.
  • I'm posting a massive JSON payload to the api-server. I got a PayloadTooLargeError error from bodyParser. It turns out you can configure the size, so I've added a BODY_PARSER_LIMIT env-var where you can specify the size.
  • I no longer show a list of functions in the api-server since you probably don't want to bleed that to world in production.

@peterp peterp added this to the Next release milestone Nov 5, 2020
@peterp peterp merged commit 15e255f into main Nov 10, 2020
@peterp peterp deleted the pp-small-http-server-tweaks branch November 11, 2020 22:30
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

Successfully merging this pull request may close these issues.

None yet

2 participants