Skip to content

Commit

Permalink
Increase sizeLimit in sendMail route (#428)
Browse files Browse the repository at this point in the history
* Increase sizeLimit in sendMail route

* re-run ci

---------

Co-authored-by: Refael Yzg <refael.yzgeav@solaredge.com>
Co-authored-by: Peter Sugihara <peter@campsh.com>
  • Loading branch information
3 people authored Jan 27, 2023
1 parent 585005a commit 5dedfbb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/cli/src/pages/api/sendMail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ import { getTemplateModule } from "../../util/moduleManifestUtil";
import { validateMethod } from "../../util/validate/validateMethod";
import { errorTemplateNotFoundInListOfTemplates } from "../../util/validate/validateTemplate";

export const config = {
api: {
bodyParser: {
sizeLimit: '4mb',
},
},
}

type Data = {
error?: string; // api error messages
mjmlErrors?: MjmlError[];
Expand Down

2 comments on commit 5dedfbb

@vercel
Copy link

@vercel vercel bot commented on 5dedfbb Jan 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

web-emails – ./packages/web

mailing-web.vercel.app
emails.mailing.run
web-emails-git-main-sofn.vercel.app
web-emails-sofn.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 5dedfbb Jan 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.