Skip to content

fix(ambient-ui): fix standalone output path in Dockerfile#1620

Merged
jsell-rh merged 1 commit into
mainfrom
jsell/feat/ambient-ui-live-preview-v2
May 30, 2026
Merged

fix(ambient-ui): fix standalone output path in Dockerfile#1620
jsell-rh merged 1 commit into
mainfrom
jsell/feat/ambient-ui-live-preview-v2

Conversation

@jsell-rh
Copy link
Copy Markdown
Contributor

Summary

  • Fix Cannot find module '/app/server.js' crash at container startup
  • outputFileTracingRoot resolves ../.. to / in Docker (WORKDIR /app), so standalone output nests under app/ (.next/standalone/app/server.js), not components/ambient-ui/
  • Use correct hardcoded path: cp -r .next/standalone/app/. /app-output/

Verification

Tested locally with podman:

  • server.js present at /app/server.js
  • Container starts, Next.js returns 200

Test plan

  • CI Docker build passes
  • Container starts without MODULE_NOT_FOUND
  • Ambient UI accessible via route

🤖 Generated with Claude Code

@netlify
Copy link
Copy Markdown

netlify Bot commented May 30, 2026

Deploy Preview for cheerful-kitten-f556a0 canceled.

Name Link
🔨 Latest commit 5efd9e4
🔍 Latest deploy log https://app.netlify.com/projects/cheerful-kitten-f556a0/deploys/6a1b0f7f36e5b50008e0acb5

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 30, 2026

Warning

Review limit reached

@jsell-rh, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 2 minutes and 36 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 0dd00b15-4b65-421c-bda8-18a5c909cc75

📥 Commits

Reviewing files that changed from the base of the PR and between b5e6290 and 5efd9e4.

📒 Files selected for processing (1)
  • components/ambient-ui/Dockerfile
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jsell/feat/ambient-ui-live-preview-v2
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch jsell/feat/ambient-ui-live-preview-v2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

outputFileTracingRoot resolves ../.. to / in Docker (WORKDIR /app),
so standalone nests files under app/ (.next/standalone/app/server.js).
Use the correct hardcoded path instead of find.

Verified locally: container starts, server.js found, Next.js returns 200.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jsell-rh jsell-rh force-pushed the jsell/feat/ambient-ui-live-preview-v2 branch from d2e2279 to 5efd9e4 Compare May 30, 2026 16:25
@jsell-rh jsell-rh merged commit dfb39b4 into main May 30, 2026
9 of 11 checks passed
@jsell-rh jsell-rh deleted the jsell/feat/ambient-ui-live-preview-v2 branch May 30, 2026 16:25
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.

1 participant