-
-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathnixpacks.toml
More file actions
23 lines (20 loc) · 791 Bytes
/
Copy pathnixpacks.toml
File metadata and controls
23 lines (20 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Nixpacks configuration for Railway.
#
# INERT TODAY: railway.json sets the Dockerfile builder, so Railway builds from
# ./Dockerfile and never reads this file. It applies only if you set the builder
# back to NIXPACKS, which is why the Chromium setup Puppeteer needs is kept here.
# See deploy/README.md.
[phases.setup]
nixPkgs = ["nodejs_20", "chromium"]
[phases.install]
cmds = ["npm ci"]
[phases.build]
cmds = ["npx prisma generate"]
# Runtime variables (non-sensitive only)
[variables]
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD = "true"
PUPPETEER_EXECUTABLE_PATH = "/run/current-system/sw/bin/chromium"
PUPPETEER_NO_SANDBOX = "true"
NODE_ENV = "production"
# Note: Sensitive variables (JWT_SECRET, SESSION_SECRET, DATABASE_URL, etc.)
# must be set via Railway dashboard, not in config files