diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 000000000..b9a74c58e --- /dev/null +++ b/nixpacks.toml @@ -0,0 +1,17 @@ +# Railway relay build config (root_dir="" — builds from repo root). +# Promotes scripts/nixpacks.toml settings here since nixpacks only reads +# config from the build root. Adds scripts/ dep install so that packages +# in scripts/package.json (e.g. @anthropic-ai/sdk, fast-xml-parser) are +# available at runtime when node scripts/ais-relay.cjs is started. + +[phases.setup] +aptPkgs = ["curl"] + +[variables] +NODE_OPTIONS = "--dns-result-order=ipv4first" + +[phases.install] +cmds = ["npm ci"] + +[phases.build] +cmds = ["npm install", "npm install --prefix scripts"]