mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-08-04 16:22:48 +08:00
fix failed deployment
This commit is contained in:
20
nixpacks.toml
Normal file
20
nixpacks.toml
Normal 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"
|
||||
Reference in New Issue
Block a user