Are we supposed to be able to use getConfig inside instrumentation-client.ts? #82935
Replies: 2 comments 1 reply
-
Looks like this is expected behavior. That should stop |
Beta Was this translation helpful? Give feedback.
-
Exactly — If you need something client-side, the safe way is to move it into |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Hi!
We're upgrading our setup from 15.2 to 15.5, and with that came a bunch of changes needed for our Sentry setup.
Now that we have moved our setup into
instrumentation-client.ts
, we get hit with an issue. The runtime configuration variables we've previously relied on seem to not be readable.Running
getConfig()
always seem to return undefined inside this file.I can't see any mention of this being the expected behaviour, so I wanted to check if that is what is expected or not.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions