Skip to content

Commit

Permalink
chore: attempt no build id, no source map
Browse files Browse the repository at this point in the history
  • Loading branch information
rafasdc committed Jan 22, 2025
1 parent 3c8e8d4 commit 34c3b75
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ RUN yarn --frozen-lockfile
# Build the app
FROM base AS builder

ARG GIT_HASH
ARG SENTRY_AUTH_TOKEN
ENV GIT_HASH=${GIT_HASH}
ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN}
# ARG GIT_HASH
# ARG SENTRY_AUTH_TOKEN
# ENV GIT_HASH=${GIT_HASH}
# ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN}

# Copy node_modules from the deps stage
COPY --from=deps ${APP_HOME}/node_modules ./node_modules
Expand Down
7 changes: 5 additions & 2 deletions app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const moduleExports = {
},
},
generateBuildId: async () => {
return process.env.GIT_HASH;
return 'latest';
},

publicRuntimeConfig: {
Expand Down Expand Up @@ -93,9 +93,12 @@ module.exports = withSentryConfig(moduleExports, {
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

authToken: `${process.env.SENTRY_AUTH_TOKEN}`,
// authToken: `${process.env.SENTRY_AUTH_TOKEN}`,
org: 'bcgov-ccbc-yr',
project: 'ccbc',
sourcemaps: {
disable: true,
},

// Only print logs for uploading source maps in CI
silent: !process.env.CI,
Expand Down

0 comments on commit 34c3b75

Please sign in to comment.