Skip to content

serverConfig doesn't replace dsn #567

@arkhamvm

Description

@arkhamvm

Version

@nuxtjs/sentry: 7.2.4
nuxt: 2.15.8

Sentry configuration

  modules: [
    '@nuxtjs/axios',
    ['@nuxtjs/sentry', { ignore: ['node_modules'] }],
  ],
  sentry: {
    dsn: 'vue_dsn', 
    serverConfig: {
      dsn: 'node_dsn',
    },
    lazy: false,
    disabled: false,
    debug: true,
    tracing: {
      tracesSampleRate: 1.0,
    },
    config: {
      environment: 'codesandbox',
    },
  },

Reproduction Link

https://codesandbox.io/p/sandbox/zealous-blackburn-00w1y6?file=%2Fpages%2Fabout%2Findex.vue%3A28%2C4

Steps to reproduce

Open about page

What is Expected?

Server Error sended to dsn from serverConfig

What is actually happening?

Server Error sended to default dsn

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions