From 2ddfbcfcaafd223c043e218f78e8ed82eae26828 Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Wed, 18 Dec 2024 07:31:01 +0300 Subject: [PATCH] debug --- frontend/Dockerfile | 4 ++-- frontend/nuxt.config.ts | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 1e7e4e7338b..a9e1189a50a 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -53,9 +53,9 @@ RUN --mount=type=secret,id=sentry_auth_token,mode=0444 \ sh -c 'if [ "$ADD_SENTRY_RELEASE" = "true" ]; then \ SENTRY_AUTH_TOKEN="$(cat /run/secrets/sentry_auth_token)" && \ echo "SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN" >> .env.sentry-build-plugin; \ - fi' \ + fi' && printenv -RUN printenv +RUN echo add sentry release: "$ADD_SENTRY_RELEASE" && echo semantic version: "$SEMANTIC_VERSION" && echo sentry auth token: "$SENTRY_AUTH_TOKEN" RUN pnpm build ############ diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts index 653902a28cc..ff450e7a3ef 100644 --- a/frontend/nuxt.config.ts +++ b/frontend/nuxt.config.ts @@ -131,6 +131,10 @@ export default defineNuxtConfig({ sourceMapsUploadOptions: { org: "openverse", project: "openverse-frontend", + /** + * This token is only used in the CI to upload source maps to Sentry when building the production + * image of the frontend. + */ authToken: process.env.SENTRY_AUTH_TOKEN, }, unstable_sentryBundlerPluginOptions: {