chore: disable sentry sourcemaps upload when building locally

This commit is contained in:
Nicolas Meienberger 2023-12-10 19:28:52 +01:00
parent 2b39f73f7c
commit 404e7406ab
3 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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:

View File

@ -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/