René's URL Explorer Experiment


Title: feat(hub): let buildHub bake statics/frames outside the hub base (sibling deploy layout) · Issue #353 · devframes/devframe · GitHub

Open Graph Title: feat(hub): let buildHub bake statics/frames outside the hub base (sibling deploy layout) · Issue #353 · devframes/devframe

X Title: feat(hub): let buildHub bake statics/frames outside the hub base (sibling deploy layout) · Issue #353 · devframes/devframe

Description: Follow-up to #347 / #349. buildHub({ context }) (#349) lets a host that assembled + mounted its own hub context hand it to the baker. Vite DevTools tried to adopt it to delete its hand-rolled build-static.ts, but hit a layout assumption:...

Open Graph Description: Follow-up to #347 / #349. buildHub({ context }) (#349) lets a host that assembled + mounted its own hub context hand it to the baker. Vite DevTools tried to adopt it to delete its hand-rolled build...

X Description: Follow-up to #347 / #349. buildHub({ context }) (#349) lets a host that assembled + mounted its own hub context hand it to the baker. Vite DevTools tried to adopt it to delete its hand-rolled build...

Opengraph URL: https://github.com/devframes/devframe/issues/353

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(hub): let buildHub bake statics/frames outside the hub base (sibling deploy layout)","articleBody":"Follow-up to #347 / #349.\n\n`buildHub({ context })` (#349) lets a host that assembled + mounted its own hub context hand it to the baker. Vite DevTools tried to adopt it to delete its hand-rolled `build-static.ts`, but hit a layout assumption: `buildHub` bakes the whole hub as **one subtree under a single `base`**, and Vite DevTools serves its devframes and assets as **root-level siblings** of the hub base.\n\n## The blocker\n\n`buildHub`'s `resolveOutPath` throws `DF8006` for any URL base that doesn't start with the hub `base`:\n\n```ts\nconst resolveOutPath = (urlBase) => {\n  if (!urlBase.startsWith(base)) throw diagnostics.DF8006({ urlBase, base })\n  return resolve(outDir, urlBase.slice(base.length))\n}\n```\n\nIt's applied to every `ctx.views.buildStaticDirs` entry (`copyBuildStatics`) and every served frame base (`writeConnectionMetas`). That's fine when every devframe mounts under the hub base (`/__devframes/\u003cid>/`), as the built-in examples do.\n\nVite DevTools' layout is different. The hub UI + endpoints live at `/__devtools/`, but:\n\n| Surface | Base at serve time |\n|---|---|\n| Hub UI + endpoints (`__connection.json`, `__rpc-dump/`, `__index.json`, `__renderers/`) | `/__devtools/` |\n| Inspect devframe SPA | `/__devframes_plugin_inspect/` |\n| Messages devframe SPA | `/__devframes_plugin_messages/` |\n| Vendored launcher assets | `/__devtools-assets/` |\n\nThe devframes mount at devframe's own default hosted base (`/__\u003cid>/`, via `resolveBasePath`), and the assets at a dedicated root path — all **siblings** of `/__devtools/`, not children. So `buildHub({ context, base: '/__devtools/' })` throws `DF8006` on the first sibling static dir, and `base: '/'` would misplace the hub's own endpoints (the kit client fetches them from `/__devtools/`, baked into the app's injected bootstrap).\n\nEither `base` choice fails, so `buildHub` can't currently bake this context — Vite DevTools keeps shadowing the baker (now only the RPC-dump + `resolveFrom` bits are shared).\n\n## Why the layout is like this\n\nThe hub base is a **protocol namespace** (its connection meta, WS, dump, renderer modules, index), deliberately distinct from where each integration's SPA and assets are served. A host may want the hub at `/__devtools/` while devframes keep their own top-level bases (so a devframe SPA URL is stable and independent of which hub mounts it). This is a legitimate deploy shape, not a Vite-DevTools quirk.\n\n## Request\n\nLet `buildHub` bake a context whose statics/frames live **outside** the hub `base` — a deploy-root layout where the hub base and the devframe/asset bases are siblings under a common deploy root. Concretely, one of:\n\n1. **A `root`/`deployBase` option** distinct from the hub `base`: `outDir` maps to the deploy root, absolute URL bases resolve against it (`resolve(outDir, stripLeadingSlash(urlBase))`), and the hub's own artifacts still write under `base` within it. Then `resolveOutPath` only needs each `urlBase` to be within the deploy root (i.e. absolute), not within the hub base — no `DF8006` for siblings.\n2. **Or** relax `resolveOutPath` so a `urlBase` outside `base` maps to `outDir`'s parent by its absolute path (with the hub subtree still at `\u003coutDir>`), covering the sibling case without a new option.\n\n`writeConnectionMetas`/`writeHubIndex` already read `ctx.frames` + `ctx.views.buildStaticDirs`, so per-frame metas and the index would follow automatically once the out-path resolution allows sibling bases.\n\nThis is the last gap before Vite DevTools can delete `build-static.ts` and bake purely through `buildHub`.\n\n## Context\n\n- `buildHub`: `packages/hub/src/node/build.ts` — `resolveOutPath` / `copyBuildStatics` / `writeConnectionMetas`\n- Downstream builder we want to retire: `vitejs/devtools` `packages/core/src/node/build-static.ts`\n- Downstream mount bases: hub `/__devtools/`; devframes at `resolveBasePath` = `/__\u003cid>/`; assets at `/__devtools-assets/`\n\n---\n\nCreated with the help of an agent.\n","author":{"url":"https://github.com/antfubot","@type":"Person","name":"antfubot"},"datePublished":"2026-09-04T02:49:08Z","url":"https://github.com/devframes/devframe/issues/353"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:497d94d1-9ad1-611c-2934-beed86dcfe78
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC2E6:B85F4:149450A:1C17B27:6AFB7370
html-safe-nonce7d928b39c380eb750c3af6825ceb93ba694b258d463a3ccf2ea4b7d52b39b3a7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkU2OkI4NUY0OjE0OTQ1MEE6MUMxN0IyNzo2QUZCNzM3MCIsInZpc2l0b3JfaWQiOiIzMDY5MjQ4ODM3NzA5OTUxODU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4e0cc57aa2590f35b7b7dcb2a31c2953ff1f2ecf7b248519b0063b28527e2239
hovercard-subject-tagissue:5343619750
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/devframes/devframe/353/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e3fbd78a8830dc1289c7a917b4e4f67902dc81dbadf1fb98d36a3c854fde5b3c/devframes/devframe/issues/353
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e3fbd78a8830dc1289c7a917b4e4f67902dc81dbadf1fb98d36a3c854fde5b3c/devframes/devframe/issues/353
og:image:altFollow-up to #347 / #349. buildHub({ context }) (#349) lets a host that assembled + mounted its own hub context hand it to the baker. Vite DevTools tried to adopt it to delete its hand-rolled build...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameantfubot
hostnamegithub.com
expected-hostnamegithub.com
None0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48
turbo-cache-controlno-preview
go-importgithub.com/devframes/devframe git https://github.com/devframes/devframe.git
octolytics-dimension-user_id279879373
octolytics-dimension-user_logindevframes
octolytics-dimension-repository_id1231722386
octolytics-dimension-repository_nwodevframes/devframe
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1231722386
octolytics-dimension-repository_network_root_nwodevframes/devframe
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2e8872b770cc4d5d0cc1f2026afab747a268e2ce
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/devframes/devframe/issues/353#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevframes%2Fdevframe%2Fissues%2F353
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevframes%2Fdevframe%2Fissues%2F353
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=devframes%2Fdevframe
Reloadhttps://github.com/devframes/devframe/issues/353
Reloadhttps://github.com/devframes/devframe/issues/353
Reloadhttps://github.com/devframes/devframe/issues/353
devframeshttps://github.com/devframes
devframehttps://github.com/devframes/devframe
Codehttps://github.com/devframes/devframe
Issues12 (12)https://github.com/devframes/devframe/issues
Pull requests13 (13)https://github.com/devframes/devframe/pulls
Actionshttps://github.com/devframes/devframe/actions
Security and qualityhttps://github.com/devframes/devframe/security
Insightshttps://github.com/devframes/devframe/pulse
https://github.com/devframes/devframe
New issuehttps://github.com/login?return_to=https://github.com/devframes/devframe/issues/353
New issuehttps://github.com/login?return_to=https://github.com/devframes/devframe/issues/353
#355https://github.com/devframes/devframe/pull/355
feat(hub): let buildHub bake statics/frames outside the hub base (sibling deploy layout)https://github.com/devframes/devframe/issues/353#top
#355https://github.com/devframes/devframe/pull/355
https://github.com/antfubot
antfubothttps://github.com/antfubot
on Sep 4, 2026https://github.com/devframes/devframe/issues/353#issue-5343619750
#347https://github.com/devframes/devframe/issues/347
#349https://github.com/devframes/devframe/pull/349
#349https://github.com/devframes/devframe/pull/349
antfuhttps://github.com/antfu
completedhttps://github.com/devframes/devframe/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#355https://github.com/devframes/devframe/pull/355
on Sep 4, 2026https://github.com/devframes/devframe/issues/353#event-30529775248
Sign up for freehttps://github.com/signup?return_to=https://github.com/devframes/devframe/issues/353
Sign in to commenthttps://github.com/login?return_to=https://github.com/devframes/devframe/issues/353
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.