Skip to content

Ship apps/docs in the app image so setup docs render#754

Merged
mrubens merged 1 commit into
developfrom
fix/ship-docs-in-app-image
Jul 24, 2026
Merged

Ship apps/docs in the app image so setup docs render#754
mrubens merged 1 commit into
developfrom
fix/ship-docs-in-app-image

Conversation

@mrubens

@mrubens mrubens commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

The contextual setup documentation from #724 doesn't render in any deployed environment: .dockerignore excludes apps/docs from the Docker build context and the app Dockerfile never copies it, while apps/web/src/lib/docs-content.ts reads the MDX at request time from ../docs and silently returns null on failure — so the panel just disappears. Works in local dev because the repo checkout has apps/docs.

Fix: include apps/docs in the build context, copy it into the build stage (also un-breaks the silent pnpm docs:assets logo sync) and into the runtime image next to apps/web where the server (cwd /roomote/apps/web) resolves ../docs.

Verified locally: built the base stage with the new context and confirmed /roomote/apps/docs is present. pnpm install is unaffected (docs land after install). apps/docs is 79 small MDX/config files, so image-size impact is negligible.

After merge, the develop build auto-rolls to the preview fleet — verify by opening a setup step on a preview tenant.

The setup-flow documentation added in #724 reads apps/docs/*.mdx from
disk at request time, but .dockerignore excluded apps/docs from the
Docker build context and the app Dockerfile never copied it into any
stage. getDocsPage() swallows the read failure and returns null, and
the setup page treats null as "no docs for this step", so the panel
silently disappeared in every Docker deployment while working in local
dev checkouts.

Include apps/docs in the build context, copy it into the build stage
(which also lets pnpm docs:assets actually sync the logo assets it was
silently skipping), and ship it in the runtime image next to apps/web
where the server resolves ../docs.
@roomote-roomote

roomote-roomote Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

No code issues found. See task

Reviewed 8efbffa

@mrubens
mrubens merged commit f59cff3 into develop Jul 24, 2026
17 checks passed
@mrubens
mrubens deleted the fix/ship-docs-in-app-image branch July 24, 2026 20:01
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