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

Description
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
- In the
webpack.config.js, instantiate new SentryCliPlugin with configFile attribute set to any file not named .sentryclirc
- 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.