From cf91b8d412ad4be7af192359a26241eca89b8470 Mon Sep 17 00:00:00 2001 From: itsrubberduck Date: Thu, 28 May 2026 21:04:09 +0200 Subject: [PATCH] fix failed deployment --- nixpacks.toml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 nixpacks.toml diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..6c054eb --- /dev/null +++ b/nixpacks.toml @@ -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"