Przemyslaw Baj

Results 8 comments of Przemyslaw Baj

> Nowhere in the documentation does it say that $config.sentryDsn or $config.sentryEnv are supported by the module > Oh, you've just added those for debugging I guess. Oh, yes indeed,...

BTW should I just move the entire `sentry` object to `publicRuntimeConfig`? ```javascript publicRuntimeConfig: { ... sentry: { config: { environment: process.env.SENTRY_ENVIRONMENT, dsn: process.env.OPTIMISER_WEB_SENTRY_DSN, disabled: process.env.SENTRY_ENVIRONMENT === 'development', }, }, },...

> No, not entire. From the docs: > > > Currently, only the config, clientConfig and serverConfig [options](https://sentry.nuxtjs.org/configuration/options) can be configured using the runtime config. > > Note that those...

> Check messages logged in the terminal. Also make sure that process.env.OPTIMISER_WEB_SENTRY_DSN is defined. Nothing in terminal, just same error in the console ![Image](https://github.com/user-attachments/assets/1f67f628-5726-4315-92a9-0b8010fc8d66) > Though I would imagine that...

> The module always logs some lines on nuxt start. Oh yes you're right! It's `Sentry reporting is disabled (no DSN has been provided)` but I did it here: ```javascript...

>When you say it doesn't work during local development do you mean nuxt instance started with nuxt dev? I run it with just `nuxt` >It works here so not sure...

Sure, `nuxt.config.js`: ```javascript import colors from 'vuetify/es5/util/colors' import * as Sentry from '@sentry/vue'; export default { head: { titleTemplate: 'XXX', title: 'XXX', htmlAttrs: { lang: 'en' }, meta: [ {...

> You haven't included the sentry part in publicRuntimeConfig. I would hope it is present when testing. I did it and it didn't work on staging + it didn't work...