diff --git a/app/Dockerfile b/app/Dockerfile index dfa2829847..e2ec868edc 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -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 diff --git a/app/next.config.js b/app/next.config.js index c1b6dddc3c..e5bcd10278 100644 --- a/app/next.config.js +++ b/app/next.config.js @@ -46,7 +46,7 @@ const moduleExports = { }, }, generateBuildId: async () => { - return process.env.GIT_HASH; + return 'latest'; }, publicRuntimeConfig: { @@ -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,