import nextConnect from 'next-connect'; import { NextApiRequest, NextApiResponse, PageConfig } from 'next'; import '@mmstudio/an000042'; import an51 from '@mmstudio/an000051'; export type Result = void; /** * 退出登陆 */ const handler = nextConnect<NextApiRequest, NextApiResponse<Result>>(); handler.get((req, res) => { const key = '01factory'; an51(req, res, key, { sameSite: 'lax' }); res.redirect('/'); }); export const config = {} as PageConfig; export default handler;