Coolify injects NODE_ENV=production at build time, causing `pnpm install --frozen-lockfile` to skip devDependencies. Next.js build then fails on missing @tailwindcss/postcss. Override NODE_ENV=development and pass --prod=false for the install step only. Builder stage still runs `next build` with NODE_ENV=production, which is the intended runtime mode. Also commits apps/dashboard/.env.production with public URLs so Next.js bakes NEXT_PUBLIC_* into the bundle at build time (Coolify API rejects the is_build_time flag, so we can't mark them runtime).
7 lines
285 B
Plaintext
7 lines
285 B
Plaintext
# Committed prod env — Next.js bakes NEXT_PUBLIC_* into the bundle at build time.
|
|
# Only public URLs here. Secrets stay in Coolify env vars (runtime).
|
|
|
|
NEXT_PUBLIC_API_URL=https://api.reparee.com
|
|
NEXT_PUBLIC_SAAS_URL=https://reparee.com
|
|
NEXT_PUBLIC_GARAGE_HOST_PATTERN=*.reparee.com
|