diff --git a/app/nixpacks.toml b/app/nixpacks.toml new file mode 100644 index 0000000..1c1a3ea --- /dev/null +++ b/app/nixpacks.toml @@ -0,0 +1,5 @@ +[phases.setup] +nixPkgs = ["nodejs_23"] + +[start] +cmd = "npx --yes serve@latest -s dist" diff --git a/app/package.json b/app/package.json index 0c0a924..876956b 100644 --- a/app/package.json +++ b/app/package.json @@ -6,6 +6,7 @@ "scripts": { "dev": "vite", "build": "tsc -b && vite build", + "start": "npx --yes serve@latest -s dist", "lint": "oxlint", "preview": "vite preview", "test": "npm run test:engenharia && npm run test:sistema", diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..9a41042 --- /dev/null +++ b/nixpacks.toml @@ -0,0 +1,11 @@ +[phases.setup] +nixPkgs = ["nodejs_23"] + +[phases.install] +cmds = ["cd app && npm install"] + +[phases.build] +cmds = ["cd app && npm run build"] + +[start] +cmd = "cd app && npx --yes serve@latest -s dist"