diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs index f39a4d4ed..e775ce51f 100644 --- a/apps/web/next.config.mjs +++ b/apps/web/next.config.mjs @@ -26,7 +26,7 @@ const nextConfig = { // different because in local environment we would need to upload the file to // the nextjs server as we do now. serverActions: { - bodySizeLimit: '15mb', + bodySizeLimit: '25mb', }, }, webpack: (config) => { diff --git a/apps/web/src/actions/datasets/create.ts b/apps/web/src/actions/datasets/create.ts index 62da648bf..60d224126 100644 --- a/apps/web/src/actions/datasets/create.ts +++ b/apps/web/src/actions/datasets/create.ts @@ -40,7 +40,7 @@ export const createDatasetAction = authProcedure .instanceof(File) .refine((file) => { return !file || file.size <= MAX_UPLOAD_SIZE_IN_MB - }, `Your dataset must be less than ${MAX_SIZE}MB in size`) + }, `Your dataset must be less than ${MAX_SIZE}MB in size. You can split it into smaller files and upload them separately.`) .refine( (file) => file.type === 'text/csv', 'Your dataset must be a CSV file', diff --git a/packages/core/src/constants.ts b/packages/core/src/constants.ts index b3b7e2c85..780481516 100644 --- a/packages/core/src/constants.ts +++ b/packages/core/src/constants.ts @@ -316,7 +316,7 @@ export const DELIMITERS_KEYS = [ 'space', 'custom', ] as const -export const MAX_SIZE = 15 +export const MAX_SIZE = 25 export const MAX_UPLOAD_SIZE_IN_MB = MAX_SIZE * 1024 * 1024 const userContentSchema = z.array(