Skip to content

Commit

Permalink
💫 added 6mb limit to body-parser to match aws spec netlify/netlify-la…
Browse files Browse the repository at this point in the history
  • Loading branch information
8eecf0d2 committed Oct 15, 2018
1 parent af2a7b2 commit 61d8f2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ts/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export class Server {
lambda: path.join(process.cwd(), this.netlifyConfig.build.functions),
}
this.express = express();
this.express.use(bodyParser.raw());
this.express.use(bodyParser.text({type: "*/*"}));
this.express.use(bodyParser.raw({ limit: "6mb" }));
this.express.use(bodyParser.text({ limit: "6mb", type: "*/*" }));
this.express.use(this.netlifyConfig.build.base, serveStatic(this.paths.static))
this.routeLambdas();
this.routeRedirects();
Expand Down

0 comments on commit 61d8f2d

Please sign in to comment.