Skip to content

Commit d45d4b4

Browse files
authored
Merge pull request #276 from scientist-softserv/sentry-as-a-secret
Sentry as a secret
2 parents 17082a1 + 5677317 commit d45d4b4

File tree

6 files changed

+10
-16
lines changed

6 files changed

+10
-16
lines changed

.env

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@
44
NEXT_PUBLIC_PROVIDER_NAME=beachsidebiotech
55
NEXT_PUBLIC_PROVIDER_ID=5159
66
NEXT_PUBLIC_SCIENTIST_API_VERSION=v2
7-
8-
SENTRY_DSN=https://[email protected]/4504810271408128

next.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,15 @@ const sentryWebpackPluginOptions = {
2727
// Additional config options for the Sentry Webpack plugin. Keep in mind that
2828
// the following options are set automatically, and overriding them is not
2929
// recommended:
30-
// release, url, org, project, authToken, configFile, stripPrefix,
31-
// urlPrefix, include, ignore
30+
// release, url, configFile, stripPrefix, urlPrefix, include, ignore
3231

3332
silent: true, // Suppresses all logs
33+
project: process.env.SENTRY_PROJECT,
34+
org: process.env.SENTRY_ORG,
35+
authToken: process.env.SENTRY_AUTH_TOKEN,
36+
setCommits: {
37+
auto: true,
38+
}
3439
// For all available options, see:
3540
// https://github.com/getsentry/sentry-webpack-plugin#options.
3641
}

sentry.client.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
import * as Sentry from '@sentry/nextjs'
66

7-
const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN
8-
97
Sentry.init({
10-
dsn: SENTRY_DSN || 'https://[email protected]/4504810271408128',
8+
dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN,
119
// Adjust this value in production, or use tracesSampler for greater control
1210
// ref: https://develop.sentry.dev/sdk/performance/#sdk-configuration
1311
tracesSampleRate: 1.0,

sentry.edge.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
import * as Sentry from '@sentry/nextjs'
66

7-
const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN
8-
97
Sentry.init({
10-
dsn: SENTRY_DSN || 'https://[email protected]/4504810271408128',
8+
dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN,
119
// Adjust this value in production, or use tracesSampler for greater control
1210
// ref: https://develop.sentry.dev/sdk/performance/#sdk-configuration
1311
tracesSampleRate: 1.0,

sentry.properties

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
defaults.url=https://sentry.io/
2-
defaults.org=scientist-inc
3-
defaults.project=webstore
41
cli.executable=node_modules/@sentry/cli/bin/sentry-cli

sentry.server.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
import * as Sentry from '@sentry/nextjs'
66

7-
const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN
8-
97
Sentry.init({
10-
dsn: SENTRY_DSN || 'https://[email protected]/4504810271408128',
8+
dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN,
119
// Adjust this value in production, or use tracesSampler for greater control
1210
// ref: https://develop.sentry.dev/sdk/performance/#sdk-configuration
1311
tracesSampleRate: 1.0,

0 commit comments

Comments
 (0)