2
0

build: 🏗️ Add Sentry to builder

This commit is contained in:
Baptiste Arnaud
2022-02-14 10:57:57 +01:00
parent 5a060c7f7e
commit 8501d39234
31 changed files with 474 additions and 52 deletions

View File

@ -1,3 +1,4 @@
import { withSentry } from '@sentry/nextjs'
import { oauth2Client } from 'libs/google-sheets'
import { NextApiRequest, NextApiResponse } from 'next'
@ -15,8 +16,8 @@ const handler = (req: NextApiRequest, res: NextApiResponse) => {
prompt: 'consent',
state: Buffer.from(JSON.stringify(req.query)).toString('base64'),
})
return res.status(301).redirect(url)
res.status(301).redirect(url)
}
}
export default handler
export default withSentry(handler)