Skip to content

Commit

Permalink
Merge pull request #260 from HackBeanpot/main
Browse files Browse the repository at this point in the history
App Portal Release to Production
  • Loading branch information
mike10911 authored Jan 26, 2024
2 parents be933a7 + 3a5f186 commit 637875e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
reactStrictMode: true,
serverActions: {
bodySizeLimit: '3mb'
}
}
7 changes: 7 additions & 0 deletions pages/api/v1/applicants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,12 @@ function parseSort(queryString: string | string[]): any {
// sort may not be stable, so sort by email as well
return { [field]: sort.order === 'ascend' ? 1 : -1, email: -1 };
}
export const config = {
api: {
bodyParser: {
sizeLimit: '3mb'
}
}
}

export default protect(handler);
8 changes: 8 additions & 0 deletions pages/api/v1/registration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,12 @@ const patchHandler: NextApiHandler = async (req, res) => {
return res.status(200).send(undefined);
};

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

export default protect(registrationHandler);

1 comment on commit 637875e

@vercel
Copy link

@vercel vercel bot commented on 637875e Jan 26, 2024

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.