Skip to content

Commit

Permalink
update Sentry configuration and add environment variables in turbo.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Koech authored and Kevin Koech committed Jan 30, 2025
1 parent aa832c5 commit 4178694
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
16 changes: 4 additions & 12 deletions apps/promisetracker/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,6 @@ const moduleExports = {
},
];
},

// Optional build-time configuration options
sentry: {
// See the 'Configure Source Maps' and 'Configure Legacy Browser Support'
// sections below for information on the following options:
// - disableServerWebpackPlugin
// - disableClientWebpackPlugin
// - hideSourceMaps
// - widenClientFileUpload
// - transpileClientSDK
hideSourceMaps: false,
},
};

const sentryWebpackPluginOptions = {
Expand All @@ -79,6 +67,10 @@ const sentryWebpackPluginOptions = {
silent: true, // Suppresses all logs
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options.
hideSourceMaps: true,
org: process.env.SENTRY_ORG,
authToken: process.env.SENTRY_AUTH_TOKEN,
project: process.env.SENTRY_PROJECT,
};

// Make sure adding Sentry options is the last code to run before exporting, to
Expand Down
5 changes: 4 additions & 1 deletion apps/promisetracker/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
"ACTNOW_API_KEY",
"GOOGLE_ID",
"GOOGLE_SECRET",
"NEXTAUTH_SECRET"
"NEXTAUTH_SECRET",
"SENTRY_AUTH_TOKEN",
"SENTRY_ORG",
"SENTRY_PROJECT"
]
}
}
Expand Down

0 comments on commit 4178694

Please sign in to comment.