Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.
This repository was archived by the owner on Nov 20, 2023. It is now read-only.

Config file name other than .sentryclirc not recognized by the plugin #435

@danielbyun

Description

@danielbyun

Environment

What version are you running? Etc.

    "@sentry/browser": "^7.24.2",
    "@sentry/cli": "^2.10.0",
    "@sentry/react": "^7.24.2",
    "@sentry/tracing": "^7.24.2",
    "@sentry/webpack-plugin": "^1.20.0",

Steps to Reproduce

  1. In the webpack.config.js, instantiate new SentryCliPlugin with configFile attribute set to any file not named .sentryclirc
  2. example
  new SentryCliPlugin({
    ...
    configFile: './sentryclirc1',
  }),
  new SentryCliPlugin({
    ...
    configFile: './sentryclirc2',
  }),

Expected Result

  • during the build source-maps and release are built to the default server and the dsn thats defined int he configuration file

What you thought would happen.

  • When build is triggered, sentry-cli should pick up the dsn, token, default.url, etc from the configuration file

Actual Result

  • sentry-cli does not detect the configuration file, and searches for .sentryclirc file only. When that exists in the directory, it picks up the values. But when removed, the default server url points to sentry.io, not our internally hosted sentry url.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions