René's URL Explorer Experiment


Title: No clean path to mount a devtools-kit `devtools.setup` plugin (embedded dock) under Nuxt SSR (0.6) · Issue #289 · devframes/devframe · GitHub

Open Graph Title: No clean path to mount a devtools-kit `devtools.setup` plugin (embedded dock) under Nuxt SSR (0.6) · Issue #289 · devframes/devframe

X Title: No clean path to mount a devtools-kit `devtools.setup` plugin (embedded dock) under Nuxt SSR (0.6) · Issue #289 · devframes/devframe

Description: Summary There's no clean path to surface a @vitejs/devtools-kit-based devtool (one that integrates via the Vite plugin.devtools.setup(ctx) hook) inside a Nuxt SSR app on devframe 0.9 / devtools-kit 0.6. The embedded dock silently never l...

Open Graph Description: Summary There's no clean path to surface a @vitejs/devtools-kit-based devtool (one that integrates via the Vite plugin.devtools.setup(ctx) hook) inside a Nuxt SSR app on devframe 0.9 / devtools-kit...

X Description: Summary There's no clean path to surface a @vitejs/devtools-kit-based devtool (one that integrates via the Vite plugin.devtools.setup(ctx) hook) inside a Nuxt SSR app on devframe 0.9 / devtools...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No clean path to mount a devtools-kit `devtools.setup` plugin (embedded dock) under Nuxt SSR (0.6)","articleBody":"## Summary\n\nThere's no clean path to surface a **`@vitejs/devtools-kit`-based devtool** (one that integrates via the Vite `plugin.devtools.setup(ctx)` hook) inside a **Nuxt SSR** app on devframe 0.9 / devtools-kit 0.6. The embedded dock silently never loads, and the documented Nuxt integration (`@devframes/nuxt/hub`) only accepts raw `DevframeDefinition`s, not kit `devtools.setup` plugins.\n\n## Context\n\nI'm migrating a Vite plugin (a Storybook devtool) from `@vitejs/devtools` 0.3.x → 0.6.0 (devframe 0.9). It integrates the standard way: a Vite plugin exposing `devtools: { setup(ctx) { ctx.docks.register(...); ctx.views.hostStatic(...); ctx.rpc.register(...); ... } }`. This works great in plain-Vite SPAs (React/Vue).\n\n## What breaks under Nuxt SSR\n\nIn 0.3.x the embedded dock reached the browser through **Vite's module graph** — Nuxt exposed it at `/_nuxt/@id/__x00__virtual:vite-devtools-injection`, so injecting that import into Nuxt's head made the dock appear.\n\nIn 0.6, `@vitejs/devtools`' injection plugin instead injects a runtime `\u003cscript type=\"module\" src=\"/__devtools/embedded.js\">`, and `embedded.js` (plus `/__devtools-client-imports.js`) is served by the **hub connect middleware** mounted on the Vite dev server. Under Nuxt SSR, **Nitro owns the request path and does not forward `/__devtools/*` to Vite's middleware**, so all of these return the app's SPA HTML instead of the dock assets:\n\n```\nGET /__devtools/                    -> 200 text/html (Nuxt page, not the dock)\nGET /__devtools/embedded.js         -> 200 text/html (Nuxt page, not JS)\nGET /__devtools-client-imports.js   -> 200 text/html (Nuxt page)\n```\n\nThe old module-graph virtual id is gone (`/_nuxt/@id/__x00__virtual:vite-devtools-injection` -> 404), so the previous mechanism no longer works either. Net effect: the in-page/client side works, but the embedded dock UI never loads in Nuxt SSR.\n\n## Why `@devframes/nuxt` doesn't cleanly cover this\n\n`@devframes/nuxt/hub` is exactly the right shape (wires `@devframes/vite/hub` into Nuxt's Vite server and injects `\u003cbase>embedded.js`), **but `viteDevframeHub` mounts raw `DevframeDefinition`s** (`devframes: InitHubOptions['devframes']`) — it does not consume `@vitejs/devtools-kit` `plugin.devtools.setup(ctx)` plugins. So a kit-based devtool would have to be **re-expressed as a standalone `defineDevframe()` definition** and mounted a second, different way just for Nuxt, in addition to the kit path it already uses under `@vitejs/devtools` everywhere else.\n\n## Asks / questions\n\n1. Is there (or can there be) a supported way to mount a **kit `devtools.setup(ctx)` plugin** into a Nuxt SSR app so its dock loads — e.g. `@vitejs/devtools` documenting a Nitro dev proxy for `/__devtools/*` (+ the RPC WebSocket), or a kit→`DevframeDefinition` adapter usable with `@devframes/nuxt/hub`?\n2. If the intended answer is \"re-express as `defineDevframe()` and use `@devframes/nuxt/hub` (or `@nuxt/devtools`)\", could the migration docs call this out explicitly? The 0.6 change from module-graph injection to middleware-served `embedded.js` is an easy silent-break for SSR hosts.\n\n## Minor, possibly related\n\nA `DF8111` warning (\"dock declares the bare-specifier client script `…`, but this host advertises no client-module resolution\") fires even in **plain Vite**, where the dock works fine. If that's expected under Vite (client modules resolve via `/@id/{specifier}`), the warning may be a false positive worth gating; if not, it may hint at the same client-script-resolution gap on non-Vite hosts.\n\nEnvironment: `@vitejs/devtools` 0.6.0, `@vitejs/devtools-kit` 0.6.0, `devframe`/`@devframes/hub` 0.9.5, Vite 8, Nuxt 4.\n","author":{"url":"https://github.com/antfubot","@type":"Person","name":"antfubot"},"datePublished":"2026-08-25T01:10:27Z","url":"https://github.com/devframes/devframe/issues/289"}

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:0551a74a-4615-6461-2990-19ff8e721c56
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE6E2:217101:2ED59:41DD5:6AFB72C4
html-safe-nonceb3a20befb57d16234bf4bfa6a53411fdad1703f1cf1a85e18cef3c7b333e3ab6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkUyOjIxNzEwMToyRUQ1OTo0MURENTo2QUZCNzJDNCIsInZpc2l0b3JfaWQiOiIyMTI1OTQ5NDYxMTYxODAwMzg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb1e3a2162b16d9495302b10295b2d77d541beaffc9f65ca24686e7f44fa79004
hovercard-subject-tagissue:5240972991
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/289/issue_layout
twitter:imagehttps://opengraph.githubassets.com/465220c0c80d9824bb0c47d246205354eeae0bc0e4c8de9c315085382d65f437/devframes/devframe/issues/289
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/465220c0c80d9824bb0c47d246205354eeae0bc0e4c8de9c315085382d65f437/devframes/devframe/issues/289
og:image:altSummary There's no clean path to surface a @vitejs/devtools-kit-based devtool (one that integrates via the Vite plugin.devtools.setup(ctx) hook) inside a Nuxt SSR app on devframe 0.9 / devtools-kit...
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/289#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevframes%2Fdevframe%2Fissues%2F289
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%2F289
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/289
Reloadhttps://github.com/devframes/devframe/issues/289
Reloadhttps://github.com/devframes/devframe/issues/289
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/289
New issuehttps://github.com/login?return_to=https://github.com/devframes/devframe/issues/289
No clean path to mount a devtools-kit devtools.setup plugin (embedded dock) under Nuxt SSR (0.6)https://github.com/devframes/devframe/issues/289#top
https://github.com/antfubot
antfubothttps://github.com/antfubot
on Aug 25, 2026https://github.com/devframes/devframe/issues/289#issue-5240972991
antfuhttps://github.com/antfu
completedhttps://github.com/devframes/devframe/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 1, 2026https://github.com/devframes/devframe/issues/289#event-30324540140
Sign up for freehttps://github.com/signup?return_to=https://github.com/devframes/devframe/issues/289
Sign in to commenthttps://github.com/login?return_to=https://github.com/devframes/devframe/issues/289
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.