Skip to content

Commit 0926d63

Browse files
authored
chore: increase payload limit to 120mb (#504)
1 parent 70b7593 commit 0926d63

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/app/server/routes/publish.post.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ export default eventHandler(async (event) => {
7575
);
7676
const contentLength = Number(getHeader(event, "content-length"));
7777

78-
// 20mb limit for now
79-
if (!whitelisted && contentLength > 1024 * 1024 * 20) {
78+
const maxPayloadSizeMb = 120;
79+
80+
if (!whitelisted && contentLength > 1024 * 1024 * maxPayloadSizeMb) {
8081
// Payload too large
8182
throw createError({
8283
statusCode: 413,
83-
message:
84-
"Max payload limit is 20mb! Feel free to apply for the whitelist: https://github.com/stackblitz-labs/pkg.pr.new/blob/main/.whitelist",
84+
message: `Max payload limit is ${maxPayloadSizeMb}mb! Feel free to apply for the whitelist: https://github.com/stackblitz-labs/pkg.pr.new/blob/main/.whitelist`,
8585
});
8686
}
8787

0 commit comments

Comments
 (0)