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 PNPM_HOME=/pnpm
|
||||||
ENV PATH=$PNPM_HOME:$PATH
|
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_SOURCEMAP=false
|
||||||
ENV NUXT_MINIFY=false
|
ENV NUXT_MINIFY=false
|
||||||
|
ENV SENTRY_ENABLED=false
|
||||||
ENV NUXT_TELEMETRY_DISABLED=1
|
ENV NUXT_TELEMETRY_DISABLED=1
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import tailwindcss from '@tailwindcss/vite'
|
|||||||
|
|
||||||
const enableSourceMaps = process.env.NUXT_SOURCEMAP === 'true'
|
const enableSourceMaps = process.env.NUXT_SOURCEMAP === 'true'
|
||||||
const enableMinify = process.env.NUXT_MINIFY !== 'false'
|
const enableMinify = process.env.NUXT_MINIFY !== 'false'
|
||||||
|
const enableSentry = process.env.SENTRY_ENABLED !== 'false'
|
||||||
|
|
||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
@@ -10,7 +11,7 @@ export default defineNuxtConfig({
|
|||||||
modules: [
|
modules: [
|
||||||
'@nuxtjs/i18n',
|
'@nuxtjs/i18n',
|
||||||
'@pinia/nuxt',
|
'@pinia/nuxt',
|
||||||
'@sentry/nuxt/module',
|
...(enableSentry ? ['@sentry/nuxt/module'] : []),
|
||||||
'@nuxt/eslint',
|
'@nuxt/eslint',
|
||||||
'nuxt-mapbox',
|
'nuxt-mapbox',
|
||||||
'@nuxt/icon',
|
'@nuxt/icon',
|
||||||
|
|||||||
Reference in New Issue
Block a user