Skip to content

feat(devtools): ship devtools as a layer#630

Merged
harlan-zw merged 3 commits into
mainfrom
feat/devtools-model-c
Jun 9, 2026
Merged

feat(devtools): ship devtools as a layer#630
harlan-zw merged 3 commits into
mainfrom
feat/devtools-model-c

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

Nuxt SEO DevTools — Model C migration

Moves OG Image's devtools from a standalone prebuilt SPA to a Nuxt layer that the shared Nuxt SEO devtools client assembles in the user's project from all installed modules (one client instead of ~1.9MB-per-module duplicated vendor/fonts/css).

  • devtools/ is now a layer: pages under pages/og-image/, composables under lib/og-image/, the 13 renderer components under components/og-image/.
  • build:client now ships the layer source at dist/devtools instead of prerendering a standalone app.
  • Self-contained: devtools contract types kept local (lib/og-image/runtime-types.ts, rpc-types.ts), and the two runtime helpers the panel needs (encodeOgImageParams, separateProps) are vendored into lib/og-image/shared/ — so the shipped layer has no dependency on src (published packages ship dist).

⚠️ Depends on nuxtseo-shared with the register-based setupDevToolsUI (Model C). Do not merge/publish until that ships. Companion PR: nuxt-modules/robots#301.

@harlan-zw harlan-zw marked this pull request as ready for review June 9, 2026 10:05
@harlan-zw harlan-zw changed the title feat(devtools): ship devtools as a layer (Nuxt SEO Model C) feat(devtools): ship devtools as a layer Jun 9, 2026
…ls workspace pkg

The devtools dir is a source layer now (no package.json), so remove it from the
workspace packages and drop the playground's dependency on the old
nuxt-og-image-devtools package, then bump the shared deps to 5.2.0.
@pkg-pr-new

pkg-pr-new Bot commented Jun 9, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/nuxt-og-image@630

commit: 0fef79b

@harlan-zw harlan-zw merged commit d1a9b3c into main Jun 9, 2026
10 checks passed
@harlan-zw harlan-zw deleted the feat/devtools-model-c branch June 9, 2026 13:25
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