Skip to content

Commit 4396451

Browse files
committed
fix: accept deploy webhook payloads up to 25 MB
1 parent d0ec74f commit 4396451

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

‎apps/dokploy/pages/api/deploy/[refreshToken].ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ const getPackageVersion = (headers: any, body: any) => {
3232
return null;
3333
};
3434

35+
export const config = {
36+
api: {
37+
bodyParser: {
38+
sizeLimit: "25mb",
39+
},
40+
},
41+
};
42+
3543
export default async function handler(
3644
req: NextApiRequest,
3745
res: NextApiResponse,

‎apps/dokploy/pages/api/deploy/compose/[refreshToken].ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ import {
1515
logWebhookError,
1616
} from "../[refreshToken]";
1717

18+
export const config = {
19+
api: {
20+
bodyParser: {
21+
sizeLimit: "25mb",
22+
},
23+
},
24+
};
25+
1826
export default async function handler(
1927
req: NextApiRequest,
2028
res: NextApiResponse,

‎apps/dokploy/pages/api/deploy/github.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ import {
2626
const getGithubRepositoryOwner = (githubBody: any) =>
2727
githubBody?.repository?.owner?.name ?? githubBody?.repository?.owner?.login;
2828

29+
export const config = {
30+
api: {
31+
bodyParser: {
32+
sizeLimit: "25mb",
33+
},
34+
},
35+
};
36+
2937
export default async function handler(
3038
req: NextApiRequest,
3139
res: NextApiResponse,

0 commit comments

Comments
 (0)