-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathnixpacks.toml
More file actions
24 lines (20 loc) · 761 Bytes
/
nixpacks.toml
File metadata and controls
24 lines (20 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# nixpacks.toml
providers = ["node"]
[phases.setup]
# Pin to specific versions of node and npm.
# Use nodejs_24 from nixpkgs https://search.nixos.org/packages?channel=25.05&show=nodejs_24&query=nodejs_24
nixPkgs = ["nodejs_24"]
nixpkgsArchive = "9eb6483c60733f96e36c823943f97eacb9bb2d60"
[phases.install]
# Use npm i to resolve linux binaries in dependencies.
# Ensures native modules are compiled for the target platform.
cmds = ["npm i"]
cacheDirectories = ["/root/.npm"]
[phases.build]
# Build the Next.js application with production optimizations.
cmds = ["npm run build"]
# Cache both Next.js and module caches for faster rebuilds
cacheDirectories = [".next/cache", "node_modules/.cache"]
[start]
# Use production Next.js server.
cmd = "npm run start"