Skip to content

docs(mintlify): scope live preview to port 3000 - #6

Merged
arpan-mondal merged 1 commit into
mainfrom
docs/mintlify-port-scope
May 12, 2026
Merged

docs(mintlify): scope live preview to port 3000#6
arpan-mondal merged 1 commit into
mainfrom
docs/mintlify-port-scope

Conversation

@arpan-mondal

Copy link
Copy Markdown
Contributor

What

Mintlify follow-up to #5 (README honesty pass). Scopes the live-preview port claim in the docs site to match the actual implementation.

Why

The Mintlify docs had the same port-scope overclaim the README did:

  1. docs/live-preview-architecture.md — the Background section listed "Vite on 5173, Next.js on 3000" as supported targets, implying multi-port. The very same file's Traefik label example one section down hardcodes port 3000 only.
  2. docs/live-preview-architecture.md — the Status line described sandbox.getPreviewUrl(port) without flagging that only port 3000 actually routes today. The SDK signature accepts any int but URLs for non-3000 ports silently don't resolve.
  3. docs/getting-started/core-concepts.mdx — the Live Previews section was generic with no port scope.

What this PR does

  • docs/live-preview-architecture.md: status line now says "Today only port 3000 is routed... Configurable ports are tracked on the roadmap."; motivation rewritten from "expose internal web servers (e.g., Vite on 5173, Next.js on 3000)" to "expose an internal web server (today: port 3000, e.g., a Next.js dev server)"
  • docs/getting-started/core-concepts.mdx: Live Previews section gets a one-line port-3000 scope note and a link to the architecture doc

What this PR does NOT do

  • Does not touch code. The Traefik label generation in internal/providers/docker.go:168-171 is unchanged. Configurable preview ports remain a v0.2 roadmap item (already tracked in docs(readme): walk back unimplemented claims, link 28ms proof #5).
  • Does not fix the stale phase-14-worker-identity-hardening branch links in docs/tutorials/code-runner.mdx, docs/tutorials/typescript-code-runner.mdx, docs/getting-started/prerequisites.mdx. That's unrelated cleanup — separate PR.

Diff size

2 files, +3 / -3 lines. Should pass any Mintlify build trivially since it's prose-only inside existing sections.

Audit notes (for reviewer confidence)

While doing this honesty pass on the docs site, I also greped for the other two README issues — both came back clean:

  • pool_security dead knobs (per_user_uid, pid_namespace, workspace_permissions, hidepid): zero mentions in the entire docs/ tree, including security-governance.md, threat-model.md, admin-control-plane.md, production-readiness.md. No follow-up docs work needed.
  • "9 file methods" overcount: not claimed anywhere in Mintlify. core-concepts.mdx describes capabilities without a count.
  • 28ms snapshot claim: docs/snapshot-restore.md already has full methodology, reproduction numbers (28/29/33ms across 3 concurrent spawns), and a file/symbol reference table. Consistent with the new README.

Follow-ups (tracked separately)

Follow-up to PR #5 (README honesty pass). The Mintlify docs had
the same port-scope overclaim:

- docs/live-preview-architecture.md mentioned "Vite on 5173, Next.js on 3000"
  in the motivation, implying multi-port support, while the same file's
  Traefik label example hardcodes port 3000 only.
- The status line referenced sandbox.getPreviewUrl(port) without noting that
  only port 3000 actually routes today; the SDK signature accepts any int but
  URLs for other ports do not resolve.
- docs/getting-started/core-concepts.mdx described Live Previews generically
  with no port scope.

Now all three places say "port 3000 today; configurable ports on the
roadmap" and core-concepts links to the architecture doc.

No code changes. Documentation only.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mintlify

mintlify Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
stacy 🟢 Ready View Preview May 12, 2026, 10:37 AM

@arpan-mondal
arpan-mondal merged commit 06ed16f into main May 12, 2026
13 checks passed
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