feat: embed WebUI in binary with proxy flags#19299
Merged
Conversation
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
This was referenced Mar 26, 2026
Closed
Closed
6 tasks
BYK
added a commit
to BYK/opencode
that referenced
this pull request
Mar 26, 2026
Build on anomalyco#19299 by @thdxr with several production hardening improvements: - Filter optional fonts during embedding (~27MB savings) — only core fonts (Inter + IBM Plex Mono) are embedded, the rest fall through to CDN proxy - Add pre-bootstrap static middleware before Instance.provide() to avoid DB migration checks on every asset request - Add SPA fallback routing — return index.html for page routes but not for asset requests (which fall through to CDN proxy for excluded fonts) - Add OPENCODE_APP_DIR env var for dev override - Auto-detect packages/app/dist in monorepo dev mode - Use explicit MIME type map instead of Bun.file().type for consistent typing - CDN proxy fallback for any asset not found locally
This was referenced Mar 26, 2026
BYK
added a commit
to BYK/opencode
that referenced
this pull request
Mar 26, 2026
Build on anomalyco#19299 by @thdxr with several production hardening improvements: - Filter optional fonts during embedding (~27MB savings) — only core fonts (Inter + IBM Plex Mono) are embedded, the rest fall through to CDN proxy - Add pre-bootstrap static middleware before Instance.provide() to avoid DB migration checks on every asset request - Add SPA fallback routing — return index.html for page routes but not for asset requests (which fall through to CDN proxy for excluded fonts) - Add OPENCODE_APP_DIR env var for dev override - Auto-detect packages/app/dist in monorepo dev mode - Use explicit MIME type map instead of Bun.file().type for consistent typing - CDN proxy fallback for any asset not found locally
Andres77872
pushed a commit
to Andres77872/opencode
that referenced
this pull request
Mar 26, 2026
Co-authored-by: BlankParticle <[email protected]>
BYK
added a commit
to BYK/opencode
that referenced
this pull request
Mar 27, 2026
Build on anomalyco#19299 by @thdxr with several production hardening improvements: - Filter optional fonts during embedding (~27MB savings) — only core fonts (Inter + IBM Plex Mono) are embedded, the rest fall through to CDN proxy - Add pre-bootstrap static middleware before Instance.provide() to avoid DB migration checks on every asset request - Add SPA fallback routing — return index.html for page routes but not for asset requests (which fall through to CDN proxy for excluded fonts) - Add OPENCODE_APP_DIR env var for dev override - Auto-detect packages/app/dist in monorepo dev mode - Use explicit MIME type map instead of Bun.file().type for consistent typing - CDN proxy fallback for any asset not found locally
uve
pushed a commit
to uve/opencode
that referenced
this pull request
Mar 28, 2026
Co-authored-by: BlankParticle <[email protected]>
BYK
added a commit
to BYK/opencode
that referenced
this pull request
Mar 29, 2026
Build on anomalyco#19299 by @thdxr with production hardening for the new server architecture (anomalyco#19335): - Add pre-bootstrap static middleware in server.ts before WorkspaceRouterMiddleware to avoid Instance.provide() + DB migration checks on every CSS/JS/image/font request - Add SPA fallback routing — page routes (no extension) get index.html, asset requests (.js, .woff2) fall through to CDN proxy - Add OPENCODE_APP_DIR env var for explicit dev override - Auto-detect packages/app/dist in monorepo dev mode - Use explicit MIME type map for consistent content-type headers - CDN proxy fallback for assets not found locally/embedded
6 tasks
BYK
added a commit
to BYK/opencode
that referenced
this pull request
Mar 29, 2026
Build on anomalyco#19299 by @thdxr with production hardening for the new server architecture (anomalyco#19335): - Add pre-bootstrap static middleware in server.ts before WorkspaceRouterMiddleware to avoid Instance.provide() + DB migration checks on every CSS/JS/image/font request - Add SPA fallback routing — page routes (no extension) get index.html, asset requests (.js, .woff2) fall through to CDN proxy - Add OPENCODE_APP_DIR env var for explicit dev override - Auto-detect packages/app/dist in monorepo dev mode - Use explicit MIME type map for consistent content-type headers - CDN proxy fallback for assets not found locally/embedded
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR embeds the WebUI directly into the binary and adds flags to control proxy behavior.
Changes
Commits