Skip to content

Commit f2f02e6

Browse files
committed
testing out more theories...
1 parent 1e6ac51 commit f2f02e6

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

next.config.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
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 = {
13-
output: 'standalone',
11+
const nextConfig = {
12+
// output: 'standalone',
1413
reactStrictMode: true,
1514
swcMinify: true,
16-
eslint: {
17-
dirs: ['pages', 'utils'], // Only run ESLint on the 'pages' and 'utils' directories during production builds
18-
},
15+
// eslint: {
16+
// dirs: ['pages', 'utils'], // Only run ESLint on the 'pages' and 'utils' directories during production builds
17+
// },
1918
sentry: {
2019
// Use `hidden-source-map` rather than `source-map` as the Webpack `devtool`
2120
// for client-side builds. (This will be the default starting in
@@ -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: process.env.SENTRY_DSN,
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: process.env.SENTRY_DSN,
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: process.env.SENTRY_DSN,
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)