Closed sophiekoonin closed 3 years ago
Great issue! Thanks, we are looking into it.
@sophiekoonin This should fix it https://github.com/getsentry/sentry-javascript/pull/3487
That was quick, thanks! I'll give that a go.
It looks like this issue appears again. I've updated from 6.13.3 to 7.34.0 and I have the same problem. With version 7.33.0 everything is working
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)@sentry/nextjs
Version:
Description
I've just set up @sentry/nextjs on our Next app, but I'm having an issue with the client side implementation as it seems
sentry.client.config.js
doesn't have access to runtime config. It looks likegetConfig()
fromnext/config
is undefined when Sentry initialises on the client.We need to use
publicRuntimeConfig
because our app is built once but deployed across multiple environments, so we don't have the environment name at build time.Minimal reproduction: CodeSandbox (NB. I set the
withSentryConfig
optionsilent: false
to prevent my auth token being logged to console, even though it's just a test organisation!). Note the page is blank, and looking in the dev tools console (not the codesandbox console, the actual browser one) shows the error in question.