fix failed deployment

This commit is contained in:
itsrubberduck
2026-05-28 21:04:09 +02:00
parent 3adba9f834
commit 272ae0b1d4
2 changed files with 20 additions and 12 deletions

View File

@@ -1,12 +0,0 @@
[phases.setup]
nixPkgs = ["nodejs_22", "corepack"]
[phases.install]
cmds = ["corepack enable", "yarn install --check-cache"]
[phases.build]
cmds = ["yarn build"]
[start]
cmd = "node .output/server/index.mjs"

20
nixpacks.toml Normal file
View File

@@ -0,0 +1,20 @@
# Nixpacks build config for OpenSquawk (Nuxt 4 + Yarn 4.9.4 via Corepack).
# This file MUST be named `nixpacks.toml` (no leading dot) — otherwise Nixpacks
# falls back to its default Node provider, which pulls in yarn-1.x and silently
# fails on our Yarn 4 lockfile (resulting in an empty .output and a container
# that crashes on start with "Cannot find module '/app/.output/server/index.mjs'").
[phases.setup]
nixPkgs = ["nodejs_22"]
[phases.install]
cmds = [
"corepack enable",
"yarn install --immutable"
]
[phases.build]
cmds = ["yarn build"]
[start]
cmd = "node .output/server/index.mjs"