Transpile next.config.ts to JS in builder; copy .js to runtime stage

↗ view on GitHub · Jeremy Thacker · 2026-05-11 · d5013f0e

Avoids requiring TypeScript in the runtime image. next start parses the
config at startup; with devDeps pruned, tsc is unavailable at runtime.
The builder stage already has TypeScript installed so we transpile there.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Repository jthacker48/mike
Author Jeremy Thacker <jeremy.thacker@rule26.org>
Authored
Parents ee103f71
Stats 1 file changed , +12 , -1
Part of Rule26 deployment scaffolding for mike fork

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-d5013f0e.md from inside the repo you want the change in.

⬇ Download capture-commit-d5013f0e.md