Update to use env variable

This commit is contained in:
Richard Propst 2021-09-29 14:42:30 -07:00
parent f9ea5f8641
commit f381dab422
2 changed files with 1 additions and 25 deletions

View File

@ -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);

View File

@ -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