Disable Sentry module in low-memory builds
All checks were successful
Build Docker Image / build (push) Successful in 5m7s
All checks were successful
Build Docker Image / build (push) Successful in 5m7s
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user