Skip to content

Commit

Permalink
chore: disable sentry sourcemaps upload when building locally
Browse files Browse the repository at this point in the history
  • Loading branch information
nicotsx committed Dec 10, 2023
1 parent 2b39f73 commit 404e740
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ services:
build:
context: .
dockerfile: Dockerfile
args:
- SENTRY_DISABLE_AUTO_UPLOAD=true
container_name: tipi-dashboard
depends_on:
tipi-db:
Expand All @@ -106,7 +108,7 @@ services:
env_file:
- .env
environment:
NODE_ENV: development
NODE_ENV: production
networks:
- tipi_main_network
ports:
Expand Down
1 change: 1 addition & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 404e740

Please sign in to comment.