Skip to content

Commit

Permalink
fix: set the limit for express.json
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Nov 12, 2022
1 parent 2629bb5 commit 6f39e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function serve() {
const templateDir = path.join(__dirname, 'templates');
const app = express();

app.use(express.json() as RequestHandler);
app.use(express.json({ limit: '1000mb' }) as RequestHandler);
app.use(cookieParser());
if (process.env.NODE_ENV === 'production') {
CrashReporter.Configure(app);
Expand Down

0 comments on commit 6f39e8d

Please sign in to comment.