From ba28a3605848b1cd09ed1af3f0f5fe73d4d4abdf Mon Sep 17 00:00:00 2001 From: andwati Date: Sat, 14 Feb 2026 15:46:59 +0300 Subject: [PATCH] perf: Increase Node.js memory limit for build and disable sourcemap generation. --- nuxt.config.ts | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index b825c78..60b0002 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -4,4 +4,8 @@ export default defineNuxtConfig({ devtools: { enabled: true }, css: ["~/assets/css/main.css"], compatibilityDate: "2024-04-03", + sourcemap: { + server: false, + client: false, + }, }); diff --git a/package.json b/package.json index c3fee6b..070b175 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "private": true, "type": "module", "scripts": { - "build": "nuxt build", + "build": "NODE_OPTIONS='--max-old-space-size=2560' nuxt build", "dev": "nuxt dev", "generate": "nuxt generate", "preview": "nuxt preview"