Skip to content

Commit fe3c094

Browse files
MadinventorZerojonocrbuddhajjigaexkevinparkwilliamdyoon
committed
Fixed error on saving. Projects got so big they hit the 100kb default limit of express. Expanded the limit to 100mb.
Co-authored-by: jonocr <[email protected]> Co-authored-by: buddhajjigae <[email protected]> Co-authored-by: xkevinpark <[email protected]> Co-authored-by: williamdyoon <[email protected]>
1 parent d974f99 commit fe3c094

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ const isDev = process.env.NODE_ENV === 'development';
1616
const isProd = process.env.NODE_ENV === 'production';
1717
const isTest = process.env.NODE_ENV === 'test';
1818

19-
app.use(express.json());
19+
app.use(express.json({limit: '100mb'}));
20+
app.use(express.urlencoded({limit: '100mb', extended: true }))
2021
app.use(cookieParser());
2122

2223

0 commit comments

Comments
 (0)