Skip to content

Commit 0002bf7

Browse files
authored
Merge pull request #334 from scientist-softserv/21-sentry-auth-token
21 sentry auth token
2 parents 79ea124 + 2e1330c commit 0002bf7

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

.env.development.example

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ CLIENT_SECRET=
55
NEXT_PUBLIC_TOKEN=
66

77
# uncomment the “SENTRY” prefixed variables below if you are using sentry and need to catch errors in local dev
8-
# SENTRY_DSN=
9-
# NEXT_PUBLIC_SENTRY_DSN=
8+
# SENTRY_DSN=ref: https://docs.sentry.io/product/sentry-basics/concepts/dsn-explainer/#where-to-find-your-dsn
109
# SENTRY_URL=https://sentry.io/
11-
# SENTRY_ORG=
12-
# SENTRY_PROJECT=
13-
# SENTRY_AUTH_TOKEN=
10+
# SENTRY_ORG= ref: https://github.com/getsentry/sentry-webpack-plugin#options (org)
11+
# SENTRY_PROJECT= ref: https://github.com/getsentry/sentry-webpack-plugin#options (project)
12+
# SENTRY_AUTH_TOKEN= ref: https://github.com/getsentry/sentry-webpack-plugin#options (authToken)

next.config.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
// This guard clause allows the app to still build in the event another exception handler will be used,
22
// or the sentry project hasn't been set up yet
3-
if (!process.env.SENTRY_DSN && !process.env.NEXT_PUBLIC_SENTRY_DSN) return
3+
if (!process.env.SENTRY_DSN) return
44

55
// This file sets a custom webpack configuration to use your Next.js app
66
// with Sentry.
77
// https://nextjs.org/docs/api-reference/next.config.js/introduction
88
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
99
const { withSentryConfig } = require('@sentry/nextjs')
1010

11-
/** @type {import('next').NextConfig} */
12-
const moduleExports = {
11+
const nextConfig = {
1312
output: 'standalone',
1413
reactStrictMode: true,
1514
swcMinify: true,
@@ -44,6 +43,6 @@ const sentryWebpackPluginOptions = {
4443
// Make sure adding Sentry options is the last code to run before exporting, to
4544
// ensure that your source maps include changes from all other Webpack plugins
4645
module.exports = withSentryConfig(
47-
moduleExports,
46+
nextConfig,
4847
sentryWebpackPluginOptions
4948
)

sentry.client.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import * as Sentry from '@sentry/nextjs'
66

77
Sentry.init({
8-
dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN,
8+
dsn: 'https://[email protected]/4504810271408128',
99
// Adjust this value in production, or use tracesSampler for greater control
1010
// ref: https://develop.sentry.dev/sdk/performance/#sdk-configuration
1111
tracesSampleRate: 1.0,

sentry.edge.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import * as Sentry from '@sentry/nextjs'
66

77
Sentry.init({
8-
dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN,
8+
dsn: 'https://[email protected]/4504810271408128',
99
// Adjust this value in production, or use tracesSampler for greater control
1010
// ref: https://develop.sentry.dev/sdk/performance/#sdk-configuration
1111
tracesSampleRate: 1.0,

sentry.server.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import * as Sentry from '@sentry/nextjs'
66

77
Sentry.init({
8-
dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN,
8+
dsn: 'https://[email protected]/4504810271408128',
99
// Adjust this value in production, or use tracesSampler for greater control
1010
// ref: https://develop.sentry.dev/sdk/performance/#sdk-configuration
1111
tracesSampleRate: 1.0,

0 commit comments

Comments
 (0)