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,