Skip to content

Commit 61d8f2d

Browse files
committed
💫 added 6mb limit to body-parser to match aws spec netlify/netlify-lambda#31
1 parent af2a7b2 commit 61d8f2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: ‎src/ts/server.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export class Server {
2626
lambda: path.join(process.cwd(), this.netlifyConfig.build.functions),
2727
}
2828
this.express = express();
29-
this.express.use(bodyParser.raw());
30-
this.express.use(bodyParser.text({type: "*/*"}));
29+
this.express.use(bodyParser.raw({ limit: "6mb" }));
30+
this.express.use(bodyParser.text({ limit: "6mb", type: "*/*" }));
3131
this.express.use(this.netlifyConfig.build.base, serveStatic(this.paths.static))
3232
this.routeLambdas();
3333
this.routeRedirects();

0 commit comments

Comments
 (0)