fix: use node18 in nixpacks (#3699)

This commit is contained in:
野声 2024-05-21 11:04:14 +08:00 committed by GitHub
parent 1953512725
commit 48a04d1cc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View File

@ -1,14 +1,15 @@
providers = ["node", "python"]
[variables]
NODE_ENV = 'production'
NODE_ENV = "production"
NIXPACKS_NODE_VERSION = "18"
[phases.setup]
nixPkgs = ["...", "libsecret"]
aptPkgs = ["...", "build-essential", "libsecret-1-dev"]
[phases.build]
cmds = ['yarn build:all', 'yarn bundle:preview', 'yarn download-extension']
cmds = ["yarn build:all", "yarn bundle:preview", "yarn download-extension"]
[start]
cmd = 'node packages/startup/dist-node/server/server.js'
cmd = "node packages/startup/dist-node/server/server.js"

View File

@ -1,7 +1,7 @@
[build]
builder = "NIXPACKS"
nixpacksConfigPath = "nixpacks.toml"
nixpacksPlan = { "providers" = ["node", "python"] }
nixpacksConfigPath = "./nixpacks.toml"
nixpacksVersion = "1.21.2"
[deploy]
numReplicas = 1