diff --git a/apps/dokploy/pages/api/deploy/[refreshToken].ts b/apps/dokploy/pages/api/deploy/[refreshToken].ts index 9cf6142d2..988a344d4 100644 --- a/apps/dokploy/pages/api/deploy/[refreshToken].ts +++ b/apps/dokploy/pages/api/deploy/[refreshToken].ts @@ -32,6 +32,14 @@ const getPackageVersion = (headers: any, body: any) => { return null; }; +export const config = { + api: { + bodyParser: { + sizeLimit: "25mb", + }, + }, +}; + export default async function handler( req: NextApiRequest, res: NextApiResponse, diff --git a/apps/dokploy/pages/api/deploy/compose/[refreshToken].ts b/apps/dokploy/pages/api/deploy/compose/[refreshToken].ts index 0d83c1017..06b4e768d 100644 --- a/apps/dokploy/pages/api/deploy/compose/[refreshToken].ts +++ b/apps/dokploy/pages/api/deploy/compose/[refreshToken].ts @@ -15,6 +15,14 @@ import { logWebhookError, } from "../[refreshToken]"; +export const config = { + api: { + bodyParser: { + sizeLimit: "25mb", + }, + }, +}; + export default async function handler( req: NextApiRequest, res: NextApiResponse, diff --git a/apps/dokploy/pages/api/deploy/github.ts b/apps/dokploy/pages/api/deploy/github.ts index 2273ac3bc..bb39ed7d5 100644 --- a/apps/dokploy/pages/api/deploy/github.ts +++ b/apps/dokploy/pages/api/deploy/github.ts @@ -26,6 +26,14 @@ import { const getGithubRepositoryOwner = (githubBody: any) => githubBody?.repository?.owner?.name ?? githubBody?.repository?.owner?.login; +export const config = { + api: { + bodyParser: { + sizeLimit: "25mb", + }, + }, +}; + export default async function handler( req: NextApiRequest, res: NextApiResponse,