mirror of https://github.com/opensumi/core
fix: use node18 in nixpacks (#3699)
This commit is contained in:
parent
1953512725
commit
48a04d1cc0
|
@ -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"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[build]
|
||||
builder = "NIXPACKS"
|
||||
nixpacksConfigPath = "nixpacks.toml"
|
||||
nixpacksPlan = { "providers" = ["node", "python"] }
|
||||
nixpacksConfigPath = "./nixpacks.toml"
|
||||
nixpacksVersion = "1.21.2"
|
||||
|
||||
[deploy]
|
||||
numReplicas = 1
|
||||
|
|
Loading…
Reference in New Issue