Web-vault compilation problem

Hello,

I have a Vaultwarden installation without docker on a debian 12 VM. I’m looking to modify the Web-vault logos. So I got the Web-Vault source folder, modified the logos and compiled with the make full command. I enter version v2024.6.2 but at the end of compilation I still get an error :
<— Last few GCs —>

[1900:0x5fc1be0] 181258 ms: Mark-sweep (reduce) 2032.2 (2083.0) → 2031.2 (2083.0) MB, 1519.2 / 0.0 ms (average mu = 0.195, current mu = 0.170) allocation failure scavenge might not succeed
[1900:0x5fc1be0] 182745 ms: Mark-sweep (reduce) 2032.2 (2083.0) → 2031.5 (2083.5) MB, 1484.0 / 0.0 ms (average mu = 0.111, current mu = 0.002) allocation failure scavenge might not succeed

<— JS stacktrace —>

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xb090e0 node::Abort() [webpack]
2: 0xa1b70e [webpack]
3: 0xce1a20 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [webpack]
4: 0xce1dc7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [webpack]
5: 0xe99435 [webpack]
6: 0xe99f16 [webpack]
7: 0xea843e [webpack]
8: 0xea8e80 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [webpack]
9: 0xeabdfe v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [webpack]
10: 0xe6d33a v8::internal::factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [webpack]
11: 0x11e61e6 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [webpack]
12: 0x15d9e59 [webpack]
Aborted
npm ERR! Lifecycle script build:oss failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: @bitwarden/web-vault@2024.6.2
npm ERR! at location: /home/dsi/bw_web_builds/web-vault/apps/web
npm ERR! Lifecycle script build:oss:selfhost:prod failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: @bitwarden/web-vault@2024.6.2
npm ERR! at location: /home/dsi/bw_web_builds/web-vault/apps/web
npm ERR! Lifecycle script dist:oss:selfhost failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: @bitwarden/web-vault@2024.6.2
npm ERR! at location: /home/dsi/bw_web_builds/web-vault/apps/web
FAILED: line 25, exit code 1. Press any key to exit…<— Last few GCs —>

Could you help me?

thanks

Info:
OS : Debain 12
RAM : 8 Go
CPU : 10
vNode : 16
vNPM : 8

You can increase the memory limit like this

export NODE_OPTIONS="--max-old-space-size=4096"

thank you very much

Sincerely