🔧 (config) publish sentry credentials to client side
This commit is contained in:
@ -8,7 +8,7 @@ MAIN_BACKEND_API_KEY=
|
|||||||
API_KEY=
|
API_KEY=
|
||||||
JWT_TOKEN=
|
JWT_TOKEN=
|
||||||
|
|
||||||
SENTRY_ORG=
|
NEXT_PUBLIC_SENTRY_ORG=
|
||||||
SENTRY_PROJECT=
|
NEXT_PUBLIC_SENTRY_PROJECT=
|
||||||
SENTRY_URL=
|
NEXT_PUBLIC_SENTRY_URL=
|
||||||
SENTRY_DSN=
|
NEXT_PUBLIC_SENTRY_DSN=
|
||||||
@ -12,10 +12,9 @@ export default withSentryConfig(nextConfig, {
|
|||||||
// For all available options, see:
|
// For all available options, see:
|
||||||
// https://www.npmjs.com/package/@sentry/webpack-plugin#options
|
// https://www.npmjs.com/package/@sentry/webpack-plugin#options
|
||||||
|
|
||||||
org: process.env.SENTRY_ORG || "",
|
org: process.env.NEXT_PUBLIC_SENTRY_ORG || "",
|
||||||
|
project: process.env.NEXT_PUBLIC_SENTRY_PROJECT || "",
|
||||||
project: process.env.SENTRY_PROJECT || "",
|
sentryUrl: process.env.NEXT_PUBLIC_SENTRY_URL || "",
|
||||||
sentryUrl: process.env.SENTRY_URL || "",
|
|
||||||
|
|
||||||
// Only print logs for uploading source maps in CI
|
// Only print logs for uploading source maps in CI
|
||||||
silent: !process.env.CI,
|
silent: !process.env.CI,
|
||||||
|
|||||||
Reference in New Issue
Block a user