This commit is contained in:
daniel31x13
2023-11-07 08:03:35 -05:00
parent 6f5245cbc4
commit cb5b1751c0
7 changed files with 243 additions and 248 deletions
-10
View File
@@ -1,10 +0,0 @@
import { NextApiRequest, NextApiResponse } from "next";
import { getToken } from "next-auth/jwt";
export default async (req: NextApiRequest, res: NextApiResponse) => {
// if using `NEXTAUTH_SECRET` env variable, we detect it, and you won't actually need to `secret`
// const token = await getToken({ req })
// const token = await getToken({ req });
// console.log("JSON Web Token", token);
// res.end();
};
+1 -1
View File
@@ -8,7 +8,7 @@ import verifyUser from "@/lib/api/verifyUser";
export const config = {
api: {
bodyParser: {
sizeLimit: process.env.IMPORT_SIZE_LIMIT || "2mb",
sizeLimit: `${process.env.IMPORT_SIZE_LIMIT || "5"}mb`,
},
},
};