Skip to content

Commit

Permalink
fix: update body size (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoannNumericite authored Jun 11, 2024
1 parent 732b755 commit 35e0457
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion formulaire/pages/api/sync/out/dossiers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ import type { NextApiHandler } from "next";
import { DossierData, EnfantData } from "src/fetching/dossiers";
import { DemandeurData } from "src/lib/types";
import { getServerSession } from "next-auth";
import { authOptions } from '../../../auth/[...nextauth]'
import { authOptions } from "../../../auth/[...nextauth]";

export const config = {
api: {
bodyParser: {
sizeLimit: "5mb",
},
},
};

const handler: NextApiHandler = async (req, res) => {
const session = await getServerSession(req, res, authOptions);
Expand Down

0 comments on commit 35e0457

Please sign in to comment.