From f381dab422b0a9f16695776f7c52766b200963bf Mon Sep 17 00:00:00 2001 From: Richard Propst Date: Wed, 29 Sep 2021 14:42:30 -0700 Subject: [PATCH] Update to use env variable --- _next.config.js | 24 ------------------------ sentry.properties | 2 +- 2 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 _next.config.js diff --git a/_next.config.js b/_next.config.js deleted file mode 100644 index 75d42a341..000000000 --- a/_next.config.js +++ /dev/null @@ -1,24 +0,0 @@ -// This file sets a custom webpack configuration to use your Next.js app -// with Sentry. -// https://nextjs.org/docs/api-reference/next.config.js/introduction -// https://docs.sentry.io/platforms/javascript/guides/nextjs/ - -const { withSentryConfig } = require('@sentry/nextjs'); - -const moduleExports = { - // Your existing module.exports -}; - -const SentryWebpackPluginOptions = { - // Additional config options for the Sentry Webpack plugin. Keep in mind that - // the following options are set automatically, and overriding them is not - // recommended: - // release, url, org, project, authToken, configFile, stripPrefix, - // urlPrefix, include, ignore - // For all available options, see: - // https://github.com/getsentry/sentry-webpack-plugin#options. -}; - -// Make sure adding Sentry options is the last code to run before exporting, to -// ensure that your source maps include changes from all other Webpack plugins -module.exports = withSentryConfig(moduleExports, SentryWebpackPluginOptions); diff --git a/sentry.properties b/sentry.properties index 417531a99..125f7717f 100644 --- a/sentry.properties +++ b/sentry.properties @@ -1,5 +1,5 @@ defaults.url=https://sentry.io/ defaults.org=vercel-sentry-solutions defaults.project=commerce-test -auth.token=<< add auth token here >> +auth.token=process.env.SENTRY_AUTH_TOKEN cli.executable=../../../../.nvm/versions/node/v16.10.0/lib/node_modules/@sentry/wizard/node_modules/@sentry/cli/bin/sentry-cli