Skip to content

fix(docker): include next.config.ts in build context#171

Merged
NIXKnight merged 1 commit into
mainfrom
fix/dockerignore-next-config
Jul 2, 2026
Merged

fix(docker): include next.config.ts in build context#171
NIXKnight merged 1 commit into
mainfrom
fix/dockerignore-next-config

Conversation

@NIXKnight

Copy link
Copy Markdown
Member

🚀 Description

Fix the container release build failing with "/app/.next/standalone": not found by re-including next.config.ts in the Docker build context.

📌 Summary

.dockerignore line 19 (*.ts) excludes root-level TypeScript files. When Sentry integration renamed next.config.jsnext.config.ts (578d5b5), the config silently fell under this rule. The builder stage then ran next build with default config — output: "standalone" was never applied, .next/standalone was never generated, and the runner stage COPY at Dockerfile:56 failed. Releases v1.3.2 and v1.3.3 are both broken by this (v1.3.2 surfaced it as the missing sentry-config module, fixed in #170; v1.3.3 surfaced the standalone gap).

- .dockerignore *.ts rule excluded root-level next.config.ts from the image build context
- Next.js built with default config, skipping output "standalone"; release image failed at COPY /app/.next/standalone
@NIXKnight NIXKnight merged commit 180c491 into main Jul 2, 2026
@NIXKnight NIXKnight deleted the fix/dockerignore-next-config branch July 2, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants