zlwaterfield
zlwaterfield
RRailway
Created by zlwaterfield on 2/1/2024 in #✋|help
Next.js slow builds
Builds are taking forever, like 10+ min for a simple Next.js app that would be <90 seconds on Vercel. Any idea why? Even without caching it shouldn't be this slow. It's in a monorepo, no config. Build command (set in UI): npm run build --workspace packages/frontend Start command (set in UI): npm run start --workspace packages/frontend auto gen toml from the config of latest build
[build]
builder = "NIXPACKS"
buildCommand = "npm run build --workspace packages/frontend"
watchPatterns = ["/packages/frontend/**"]

[deploy]
numReplicas = 1
startCommand = "npm run start --workspace packages/frontend"
sleepApplication = false
restartPolicyType = "ON_FAILURE"
restartPolicyMaxRetries = 10
[build]
builder = "NIXPACKS"
buildCommand = "npm run build --workspace packages/frontend"
watchPatterns = ["/packages/frontend/**"]

[deploy]
numReplicas = 1
startCommand = "npm run start --workspace packages/frontend"
sleepApplication = false
restartPolicyType = "ON_FAILURE"
restartPolicyMaxRetries = 10
6 replies