We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would be great if, within the sentry.client.config.ts file, we would able to use the runtime config: https://nuxt.com/docs/api/composables/use-runtime-config Example from other module: https://formkit.com/getting-started/installation#using-environment-variables-in-formkitconfigts The code below import * as Sentry from '@sentry/nuxt' Sentry.init({ enabled: process.env.NUXT_PUBLIC_SENTRY_ENABLED, }) Would then become: import * as Sentry from '@sentry/nuxt' export default defineSentryConfig(() => { const config = useRuntimeConfig() Sentry.init({ enabled: config.public.sentry.enabled, }) })
Would be great if, within the sentry.client.config.ts file, we would able to use the runtime config:
sentry.client.config.ts
https://nuxt.com/docs/api/composables/use-runtime-config
Example from other module: https://formkit.com/getting-started/installation#using-environment-variables-in-formkitconfigts
The code below
import * as Sentry from '@sentry/nuxt' Sentry.init({ enabled: process.env.NUXT_PUBLIC_SENTRY_ENABLED, })
Would then become:
import * as Sentry from '@sentry/nuxt' export default defineSentryConfig(() => { const config = useRuntimeConfig() Sentry.init({ enabled: config.public.sentry.enabled, }) })
Originally posted by @darthf1 in #9095
The text was updated successfully, but these errors were encountered:
I guess this was implemented in #13457 ?
Sorry, something went wrong.
Yes, this was implemented, but this only works on client-side due to technical reasons.
Successfully merging a pull request may close this issue.
Originally posted by @darthf1 in #9095
The text was updated successfully, but these errors were encountered: