fix: do not do anonymous default export

This commit is contained in:
Andrey A. committed 2026-01-27 23:34:44 +01:00
1 parent ad29cb8144
commit 907f079fa9
1 file changed
+4 -2
@@ -2,8 +2,6 @@ import { NextApiRequest, NextApiResponse } from 'next'
import apiWrapper from 'lib/api/apiWrapper'
export default (req: NextApiRequest, res: NextApiResponse) => apiWrapper(req, res, handler)
async function handler(req: NextApiRequest, res: NextApiResponse) {
const { method } = req
@@ -16,6 +14,10 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
}
}
export default function deploymentMode(req: NextApiRequest, res: NextApiResponse) {
return apiWrapper(req, res, handler)
}
type ResponseData = {
is_cli_mode: boolean
}