Fix runtime TSX JSX config #5
No reviewers
Labels
No labels
configuration
docker
forgejo
priority:medium
release
status:active
status:done
status:inprogress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit.com!5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-runtime-tsx-tsconfig"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
tsconfig.jsoninto the runtime Docker image sotsxuses the configuredjsxImportSource: hono/jsx.0.1.1for the next web release image.Root cause
The published
0.1.0image runs source throughnode --import tsx, but the runtime image did not includetsconfig.json. Without it, TSX was transformed with the default React JSX runtime, causing production page renders to fail withReferenceError: React is not defined.Verification
npm run buildnpm testdocker build -t slugkit-com:tsx-tsconfig-fix .GET /healthandGET /both return HTTP 200.Related homelab task: task-a2aa737d