From b0d72f7a13e3b63f20f7065b84b1ebd7c6145754 Mon Sep 17 00:00:00 2001 From: Rafi Arrafif Date: Thu, 2 Oct 2025 23:35:01 +0700 Subject: [PATCH] :wrench: (config) publish sentry credentials to client side --- .env.example | 8 ++++---- next.config.ts | 7 +++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.env.example b/.env.example index 0fd18c3..06ab059 100644 --- a/.env.example +++ b/.env.example @@ -8,7 +8,7 @@ MAIN_BACKEND_API_KEY= API_KEY= JWT_TOKEN= -SENTRY_ORG= -SENTRY_PROJECT= -SENTRY_URL= -SENTRY_DSN= \ No newline at end of file +NEXT_PUBLIC_SENTRY_ORG= +NEXT_PUBLIC_SENTRY_PROJECT= +NEXT_PUBLIC_SENTRY_URL= +NEXT_PUBLIC_SENTRY_DSN= \ No newline at end of file diff --git a/next.config.ts b/next.config.ts index 3e7f808..1548f9e 100644 --- a/next.config.ts +++ b/next.config.ts @@ -12,10 +12,9 @@ export default withSentryConfig(nextConfig, { // For all available options, see: // https://www.npmjs.com/package/@sentry/webpack-plugin#options - org: process.env.SENTRY_ORG || "", - - project: process.env.SENTRY_PROJECT || "", - sentryUrl: process.env.SENTRY_URL || "", + org: process.env.NEXT_PUBLIC_SENTRY_ORG || "", + project: process.env.NEXT_PUBLIC_SENTRY_PROJECT || "", + sentryUrl: process.env.NEXT_PUBLIC_SENTRY_URL || "", // Only print logs for uploading source maps in CI silent: !process.env.CI,