Skip to content

chore(layer): remove the legacy Studio app config schema - #1487

Merged
larbish merged 1 commit into
mainfrom
chore/remove-nuxt-schema
Nov 17, 2026
Merged

larbish merged 1 commit into
mainfrom
chore/remove-nuxt-schema

Conversation

@larbish

@larbish larbish commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Why

layer/nuxt.schema.ts describes the app config with field() and group() from @nuxt/content/preview. They only add @previewInput and @previewIcon tags for the app config form of the old hosted Nuxt Studio. nuxt-studio 1.x doesn't read them, and Content v4 doesn't export @nuxt/content/preview: on v4, Nuxt drops the schema (NUXT_B5005) and nuxt typecheck fails with TS2307.

What changed

  • Remove layer/nuxt.schema.ts and its entry in the layer's files.
  • Type navigation.sub in the AppConfig augmentation in layer/app/types. It was the only key the schema typed that the augmentation didn't (Nuxt UI types ui itself). useSubNavigation drops its cast.

Evidence

On @nuxt/content 3.16.2 (current dependencies):

  • pnpm run lint, pnpm run typecheck and pnpm run test pass. The test run has one fewer case: package-files.test.ts generates one per entry of layer/, and nuxt.schema.ts is gone.
  • nuxt build docs (Vercel): 226 routes and 42 pages, and pnpm check:vercel-output docs passes.
  • scripts/test-starter.sh default builds and typechecks.

On the Content v4 preview (@nuxt/content4, nuxt/content-v4-temp): no NUXT_B5005 and no TS2307.

Notes

Part of moving Docus to Content v4 (v3 compatibility mode). It changes nothing on v3, so it can land now. Content v4 isn't published on npm yet.

ELI5

Docus had a file describing its settings for an old version of the Studio editor. Nothing reads it anymore, and the next Nuxt Content can't load it, so it's removed. The one setting it described that wasn't described elsewhere moved to Docus's type file.

🤖 Generated with Amp, reviewed by @larbish before opening.

@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docus Ready Ready Preview Nov 17, 2026 3:12pm UTC

@pkg-pr-new

pkg-pr-new Bot commented Nov 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/create-docus@1487
npm i https://pkg.pr.new/docus@1487

commit: 36b28fe

@docus-bundle-report

Copy link
Copy Markdown

Bundle size

Explore the comparison →

Client 795.9 kB $\color{red}\textsf{(+7 B, +0.0}\%\textsf{)}$ · Server 1.64 MB $\color{red}\textsf{(+58 B, +0.0}\%\textsf{)}$

No route loads 100 B more or less before it renders.

No prerendered URL's initial load or HTML changes by 100 B or more.

Brotli sizes. Changes under 100 B are left out of the tables. Measured by nuxt-bundle-analyzer for 36b28fe.

@larbish
larbish merged commit 55212c0 into main Nov 17, 2026
13 checks passed
@larbish
larbish deleted the chore/remove-nuxt-schema branch November 17, 2026 15:49

This branch was successfully deployed

1 active deployment
Preview — 36b28fef Deployed Nov 17, 2026 by vercel[bot]
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