diff --git a/Dockerfile b/Dockerfile index c87d4c8..2e68d0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,10 @@ FROM node:22-slim AS build ENV PNPM_HOME=/pnpm ENV PATH=$PNPM_HOME:$PATH -ENV NODE_OPTIONS=--max-old-space-size=1536 +ENV NODE_OPTIONS=--max-old-space-size=2048 ENV NUXT_SOURCEMAP=false ENV NUXT_MINIFY=false +ENV SENTRY_ENABLED=false ENV NUXT_TELEMETRY_DISABLED=1 WORKDIR /app diff --git a/nuxt.config.ts b/nuxt.config.ts index 00b5af6..80db957 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -2,6 +2,7 @@ import tailwindcss from '@tailwindcss/vite' const enableSourceMaps = process.env.NUXT_SOURCEMAP === 'true' const enableMinify = process.env.NUXT_MINIFY !== 'false' +const enableSentry = process.env.SENTRY_ENABLED !== 'false' // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ @@ -10,7 +11,7 @@ export default defineNuxtConfig({ modules: [ '@nuxtjs/i18n', '@pinia/nuxt', - '@sentry/nuxt/module', + ...(enableSentry ? ['@sentry/nuxt/module'] : []), '@nuxt/eslint', 'nuxt-mapbox', '@nuxt/icon',