Files
estel_docs/nixpacks.toml
2025-07-28 23:33:26 +08:00

18 lines
499 B
TOML

[phases.setup]
nixPkgs = [
"nodejs_18", # Nixpacks 已帮你加,这里显性写出来安全
"sqlite" # 预编译好的 sqlite 库
]
[phases.install]
cmds = [
"sudo apt-get update -y",
"sudo apt-get install -y build-essential python3", # 上 gcc/make/python
"pnpm config set script-shell '/bin/bash'", # 避免 sh -c 失环境
"pnpm install --frozen-lockfile"
]
# 可选:编译缓存,构建更快
[phases.build]
cacheDirectories = [ "node_modules/.cache" ]