2
0

build(viewer): 🏗️ Add sentry to viewer

This commit is contained in:
Baptiste Arnaud
2022-02-15 08:43:11 +01:00
parent ea80fd6d3e
commit b339add838
13 changed files with 253 additions and 5 deletions

View File

@ -1,3 +1,4 @@
import { withSentry } from '@sentry/nextjs'
import { Answer } from 'db'
import prisma from 'libs/prisma'
import { NextApiRequest, NextApiResponse } from 'next'
@ -22,4 +23,4 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
return methodNotAllowed(res)
}
export default handler
export default withSentry(handler)