Single-container deployment — API serves the Expo Web bundle as static fallback #186
Labels
No labels
area:auth
area:ci
area:db
area:infra
area:native
area:pwa
area:service
epic
feature
foundation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
james/carol#186
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
The API container also serves the Expo Web static bundle, so self-hosters still run one image. API routes are served from
/api/*; everything else falls through to the static bundle, with SPA-styleindex.htmlfallback for client-side routes.Scope
apps/api, buildapps/client(web target), copy the static bundle into the API image.apps/client/dist/index.htmlfor any non-/api/*route that doesn't match a static asset.index.html.Acceptance criteria
docker run carolexposes the API at/api/*and serves the Expo Web bundle for every other path.Out of scope
Composes with
Decommission Next.js UI, Expo client scaffolding.
Part of
#176