Remix: Deployment failing

Hi all,
My deployment (which was working fine in past) for the staging environment is failing. I have no idea why.
Looks like migration is the issue

Running devyo-life-staging release_command: bash ./scripts/migrate.sh
Created release_command machine 28666ddae34328
Waiting for 28666ddae34328 to have state: started
Machine 28666ddae34328 has state: started
Waiting for 28666ddae34328 to have state: destroyed
Machine 28666ddae34328 has state: destroyed
Waiting for 28666ddae34328 to get exit event
:heavy_multiplication_x: release_command failed
Error release_command failed running on machine 28666ddae34328 with exit code 134.
Check its logs: here’s the last 100 lines below, or run ‘fly logs -i 28666ddae34328’:
Pulling container image registry.fly.io/devyo-life-staging:deployment-01HX7XZDJED2BRZFJW1GQH0DVG
:heavy_multiplication_x: Failed: error release_command machine 28666ddae34328 exited with non-zero status of 134
Successfully prepared image registry.fly.io/devyo-life-staging:deployment-01HX7XZDJED2BRZFJW1GQH0DVG (1.236542267s)
Configuring firecracker
[ 0.041209] Spectre V2 : WARNING: Unprivileged eBPF is enabled with eIBRS on, data leaks possible via Spectre v2 BHB attacks!
[ 0.044526] PCI: Fatal: No config space access function found
INFO Starting init (commit: d772ddd9)…
INFO Preparing to run: docker-entrypoint.sh bash ./scripts/migrate.sh as root
INFO [fly api proxy] listening at /.fly/api
2024/05/06 21:47:19 INFO SSH listening listen_address=[fdaa:5:38a0:a7b:11a:6994:71d:2]:22 dns_server=[fdaa::3]:53
Machine created and started in 2.143s
Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
no label, UUID=cd49e349-2b68-4bd0-b1ae-0c6008dc26de
npm WARN exec The following package was not found and will be installed: prisma@5.13.0
<— Last few GCs —>
[315:0x69f6850] 17695 ms: Scavenge (reduce) 253.1 (257.6) → 253.0 (258.3) MB, 26.0 / 0.0 ms (average mu = 0.705, current mu = 0.726) allocation failure;
[315:0x69f6850] 18448 ms: Mark-sweep (reduce) 254.0 (258.3) → 253.7 (259.1) MB, 496.2 / 0.5 ms (+ 199.9 ms in 30 steps since start of marking, biggest step 33.6 ms, walltime since start of marking 1018 ms) (average mu = 0.638, current mu = 0.570) all
<— JS stacktrace —>
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 0xb9a330 node::Abort() [npm exec prisma migrate deploy]
2: 0xaa07ee [npm exec prisma migrate deploy]
3: 0xd71ed0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [npm exec prisma migrate deploy]
4: 0xd72277 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [npm exec prisma migrate deploy]
5: 0xf4f635 [npm exec prisma migrate deploy]
6: 0xf61b0d v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [npm exec prisma migrate deploy]
7: 0xf3c1fe v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [npm exec prisma migrate deploy]
8: 0xf3d5c7 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [npm exec prisma migrate deploy]
9: 0xf1db40 v8::internal::factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [npm exec prisma migrate deploy]
10: 0xf155b4 v8::internal::FactoryBasev8::internal::Factory::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Map, v8::internal::AllocationAlignment) [npm exec prisma migrate deploy]
11: 0xf17868 v8::internal::FactoryBasev8::internal::Factory::NewRawOneByteString(int, v8::internal::AllocationType) [npm exec prisma migrate deploy]
12: 0x1057999 v8::internal::JsonParser::MakeString(v8::internal::JsonString const&, v8::internal::Handlev8::internal::String) [npm exec prisma migrate deploy]
13: 0x10596b6 v8::internal::JsonParser::ParseJsonValue() [npm exec prisma migrate deploy]
14: 0x105a19f v8::internal::JsonParser::ParseJson() [npm exec prisma migrate deploy]
15: 0xdf7983 v8::internal::Builtin_JsonParse(int, unsigned long*, v8::internal::Isolate*) [npm exec prisma migrate deploy]
16: 0x1710839 [npm exec prisma migrate deploy]
./scripts/migrate.sh: line 9: 315 Aborted npx prisma migrate deploy
INFO Main child exited normally with code: 134
INFO Starting clean up.
[ 19.354786] reboot: Restarting system
machine restart policy set to ‘no’, not restarting
Checking DNS configuration for devyo-life-staging.fly.dev
Error: release command failed - aborting deployment. error release_command machine 28666ddae34328 exited with non-zero status of 134
Error: Process completed with exit code 1.

Any idea how can I fix it?

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Looks like your VM might be out of memory. Try scaling the VM RAM to 512 mb or 1gb and redeploying.