mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Update to use env variable
This commit is contained in:
@@ -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);
|
|
@@ -1,5 +1,5 @@
|
|||||||
defaults.url=https://sentry.io/
|
defaults.url=https://sentry.io/
|
||||||
defaults.org=vercel-sentry-solutions
|
defaults.org=vercel-sentry-solutions
|
||||||
defaults.project=commerce-test
|
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
|
cli.executable=../../../../.nvm/versions/node/v16.10.0/lib/node_modules/@sentry/wizard/node_modules/@sentry/cli/bin/sentry-cli
|
||||||
|
Reference in New Issue
Block a user