Skip to content

Commit a376785

Browse files
authored
Merge pull request #630 from hack4impact-uiuc/increase-max-payload-size
increase max json payload size
2 parents d2ddba1 + 040e80e commit a376785

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/backend/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ app.use(
3232
);
3333

3434
if (process.env.NODE_ENV !== ENV_TEST) initDB();
35-
app.use(bodyParser.urlencoded({ extended: false }));
36-
app.use(bodyParser.json());
35+
app.use(bodyParser.urlencoded({ extended: false, limit: '50mb' }));
36+
app.use(bodyParser.json({ limit: '50mb' }));
3737

3838
// This allows the backend to either serve routes or redirect to frontend
3939
app.get('/*', (req: Request, res: Response, next: NextFunction) => {

apps/backend/src/utils/initDb.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ export const generateFieldSchema = (field: Field): SchemaDefinitionProperty | nu
153153
return getFieldGroupSchema(field)
154154
case FieldType.SIGNATURE:
155155
return getSignatureSchema(field)
156+
case FieldType.HEADER:
156157
case FieldType.DIVIDER:
157158
return null
158159
case FieldType.MAP:

0 commit comments

Comments
 (0)