diff --git a/Dockerfile b/Dockerfile index a9a2759..41ed561 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,9 @@ COPY packages/api/package.json ./packages/api/ COPY packages/ui/package.json ./packages/ui/ COPY packages/eslint-config/package.json ./packages/eslint-config/ COPY packages/typescript-config/package.json ./packages/typescript-config/ -RUN pnpm install --frozen-lockfile +# Force dev deps even when Coolify injects NODE_ENV=production at build time. +# Tailwind / postcss / next types are devDependencies — required by `next build`. +RUN NODE_ENV=development pnpm install --frozen-lockfile --prod=false # ──────────────────────────────────────────────────────────── # Stage 3: builder — build dashboard with standalone output diff --git a/apps/dashboard/.env.production b/apps/dashboard/.env.production new file mode 100644 index 0000000..9682bbc --- /dev/null +++ b/apps/dashboard/.env.production @@ -0,0 +1,6 @@ +# 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