fix: update nixpacks with npm build step

This commit is contained in:
zhadaarsita 2025-09-20 11:08:18 +07:00
parent ae0f8d93ef
commit 025439f452
1 changed files with 6 additions and 1 deletions

View File

@ -1,2 +1,7 @@
# Memberitahu Railway untuk menyediakan PHP 8.3 dan NodeJS v20
[phases.setup]
nixPkgs = ["php83"]
nixPkgs = ["php83", "nodejs_20"]
# Memberitahu Railway untuk menjalankan perintah build frontend
[phases.build]
cmds = ["npm install", "npm run build"]