Commit b844a323 authored by Henrik Wenz's avatar Henrik Wenz Committed by Tim Neutkens

Allow automatic static optimization in with-sentry-simple examp… (#8102)

parent 55e87ea5
......@@ -7,16 +7,6 @@ Sentry.init({
})
class MyApp extends App {
static async getInitialProps ({ Component, ctx }) {
let pageProps = {}
if (Component.getInitialProps) {
pageProps = await Component.getInitialProps(ctx)
}
return { pageProps }
}
componentDidCatch (error, errorInfo) {
Sentry.withScope(scope => {
Object.keys(errorInfo).forEach(key => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment