make API_PORT overridable

This commit is contained in:
Joakim Repomaa
2026-02-22 22:52:42 +02:00
parent b31138e3a5
commit f2d235d046
2 changed files with 5 additions and 4 deletions

View File

@@ -26,9 +26,11 @@
npmDepsHash = "sha256-2XxcsvKeYp+SVBx6Z2uB/34qUr7AderMxXKjm/kS8F0=";
API_PORT = "3000";
buildPhase = ''
runHook preBuild
npm run build
PUBLIC_API_PORT="''${API_PORT}" npm run build
runHook postBuild
'';