diff --git a/.kontinuous/values.yaml b/.kontinuous/values.yaml index 1b487f2d..99b391bc 100644 --- a/.kontinuous/values.yaml +++ b/.kontinuous/values.yaml @@ -30,9 +30,9 @@ jobs: buildArgs: NEXT_PUBLIC_HASURA_URL: "https://hasura-{{ .Values.global.host }}/v1/graphql" - SENTRY_DSN: "https://1fc6ed945722444583d4238af34346a9@sentry.fabrique.social.gouv.fr/85" - SENTRY_ENVIRONMENT: "{{ .Values.global.env }}" - SENTRY_RELEASE: "{{ .Values.global.imageTag }}" + NEXT_PUBLIC_SENTRY_DSN: "https://1fc6ed945722444583d4238af34346a9@sentry.fabrique.social.gouv.fr/85" + NEXT_PUBLIC_SENTRY_ENVIRONMENT: "{{ .Values.global.env }}" + NEXT_PUBLIC_SENTRY_RELEASE: "{{ .Values.global.imageTag }}" secrets: sentry_auth_token: secretName: sentry diff --git a/.talismanrc b/.talismanrc index 0956e2ed..1b237a7f 100644 --- a/.talismanrc +++ b/.talismanrc @@ -6,7 +6,7 @@ fileignoreconfig: - filename: .kontinuous/env/prod/templates/sentry.sealed-secret.yaml checksum: ef7c23320a02ca66f8a10755bccabc2a487973e9581a4408ed3f4c8685f921f7 - filename: .kontinuous/values.yaml - checksum: 80576ff559e478771cc231b7bb71875c5e2cf1f474910132bb6b9433717ec8bf + checksum: 1d67b52046f6e850ff38f806000aa8bb1329cb1f7e6314fbec89bea2009709e3 - filename: Dockerfile checksum: 14c30aedc55e0f61364c26cf84c28596973f6951f4e0322f2f2693ec84ff513c - filename: packages/hasura/migrations/default/1691156416829_alter_table_public_users_add_column_disabled/down.sql diff --git a/Dockerfile b/Dockerfile index 9a4aff04..43d1f840 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,13 +34,6 @@ RUN --mount=type=secret,id=sentry_auth_token export SENTRY_AUTH_TOKEN="$(cat /ru # Production image, copy all the files and run next FROM base AS runner -ARG SENTRY_ENVIRONMENT -ENV SENTRY_ENVIRONMENT $SENTRY_ENVIRONMENT -ARG SENTRY_RELEASE -ENV SENTRY_RELEASE $SENTRY_RELEASE -ARG SENTRY_DSN -ENV SENTRY_DSN $SENTRY_DSN - ENV NODE_ENV production ENV NEXT_TELEMETRY_DISABLED 1 diff --git a/next.config.js b/next.config.js index 01d95a1c..bb7e939b 100644 --- a/next.config.js +++ b/next.config.js @@ -81,6 +81,9 @@ const sentryWebpackPluginOptions = { org: "incubateur", project: "secretariat", url: "https://sentry.fabrique.social.gouv.fr/", + release: process.env.NEXT_PUBLIC_SENTRY_RELEASE, + environment: process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT, + dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, } const sentryOptions = {