bug fix
This commit is contained in:
@@ -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();
|
||||
};
|
||||
@@ -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`,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user