Commit b5e6290
fix(ambient-ui): fix Docker build for standalone output (#1619)
## Summary
- Build SDK `dist/` in Docker (ts-sdk `dist/` is gitignored, CI has no
pre-built output)
- Copy standalone output from correct nested path
(`outputFileTracingRoot` nests files under `components/ambient-ui/`)
- Use webpack for production build (Turbopack can't resolve `file:`
linked dependencies)
Fixes the `Cannot find module '/app/server.js'` crash at container
startup and the `Module not found: Can't resolve 'ambient-sdk'` build
failure.
## Test plan
- [x] `npm run build` passes locally with webpack
- [x] `server.js` confirmed at
`.next/standalone/components/ambient-ui/server.js`
- [x] 167 tests pass
- [ ] CI Docker build passes and pushes to quay.io
- [ ] Container starts without `MODULE_NOT_FOUND` error
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5402772 commit b5e6290
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
0 commit comments