Skip to content

Fix CI Docker image build by restoring Next.js standalone output - #19

Merged
mesayanroy merged 4 commits into
mainfrom
copilot/fix-ci-cd-lint-and-type-check
Jun 23, 2026
Merged

Fix CI Docker image build by restoring Next.js standalone output#19
mesayanroy merged 4 commits into
mainfrom
copilot/fix-ci-cd-lint-and-type-check

Conversation

Copilot AI commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

CI / CD / Docker Image Build was failing on both pull_request and push because the Docker runtime stage copies .next/standalone, but the Next.js build no longer emitted that artifact. This change aligns build output with the existing Docker packaging contract.

  • Root cause

    • Dockerfile expects:
      • .next/standalone
      • .next/static
    • Next.js config did not enforce standalone output, so image assembly failed at copy time.
  • Change

    • Updated Next.js config to explicitly emit standalone artifacts required by the Docker runtime stage.
  • Config delta

    // next.config.mjs
    const nextConfig = {
      pageExtensions: ['ts', 'tsx', 'md', 'mdx'],
      output: 'standalone',
      // ...
    };

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
0x402-pubsub Ready Ready Preview, Comment Jun 23, 2026 10:24pm

@mesayanroy
mesayanroy marked this pull request as ready for review June 23, 2026 22:15
Copilot AI changed the title Stabilize CI lint gate by excluding generated artifacts and right-sizing warning enforcement Fix CI Docker image build by restoring Next.js standalone output Jun 23, 2026
Copilot AI requested a review from mesayanroy June 23, 2026 22:28
@mesayanroy
mesayanroy merged commit 407ff48 into main Jun 23, 2026
8 checks passed
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