2
0

📝 Improve description for DISABLE_SIGNUP param

This commit is contained in:
Baptiste Arnaud
2023-03-11 09:57:11 +01:00
parent 883d519875
commit 8df830721c
2 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
try {
await createDomainOnVercel(data.name)
} catch (err) {
console.log(err)
if (err instanceof HTTPError && err.response.statusCode !== 409)
return res.status(err.response.statusCode).send(err.response.body)
}