diff --git a/Dockerfile b/Dockerfile index a1d413c7..d30337ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,10 @@ COPY ./sentry.edge.config.ts ./sentry.edge.config.ts COPY ./sentry.server.config.ts ./sentry.server.config.ts ARG SENTRY_AUTH_TOKEN +ARG SENTRY_DISABLE_AUTO_UPLOAD + ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN} +ENV SENTRY_DISABLE_AUTO_UPLOAD=${SENTRY_DISABLE_AUTO_UPLOAD} RUN npm run build diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index a1fd3edf..6ea1f7bd 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -95,6 +95,8 @@ services: build: context: . dockerfile: Dockerfile + args: + - SENTRY_DISABLE_AUTO_UPLOAD=true container_name: tipi-dashboard depends_on: tipi-db: @@ -106,7 +108,7 @@ services: env_file: - .env environment: - NODE_ENV: development + NODE_ENV: production networks: - tipi_main_network ports: diff --git a/next.config.mjs b/next.config.mjs index eee65a70..f0e416a7 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -40,6 +40,7 @@ export default withSentryConfig( silent: false, org: 'runtipi', project: 'runtipi-dashboard', + dryRun: process.env.SENTRY_DISABLE_AUTO_UPLOAD === 'true', }, { // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/