Replies: 1 comment 3 replies
-
Hey thanks for writing in!
Sentry does accept an async function: I was unable to reproduce this - do you have a copy of the error message that occurs? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I have a project that I added Sentry to, but the problem is that I have the nextConfig variable as an async function which the
withSentryConfig
doesn't accept. My next.config.js file looks like this:I've also played around with it and using await on the nextConfig argument or calling the function also does not work. I've tried converting it to .then blocks but that also does not work.
Without Sentry it works well because nextjs accepts nextConfig as an async function but Sentry does not. Is there a workaround to this?
"@sentry/nextjs": "^7.42.0",
"next": "13.1.2",
"react": "18.2.0",
Beta Was this translation helpful? Give feedback.
All reactions