mirror of
https://github.com/meienberger/runtipi.git
synced 2024-09-11 12:15:48 +03:00
chore: disable sentry sourcemaps upload when building locally
This commit is contained in:
parent
2b39f73f7c
commit
404e7406ab
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user