Repository navigation
chore(layer): remove the legacy Studio app config schema - #1487
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
Bundle sizeClient 795.9 kB 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 |
This branch was successfully deployed
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.
Why
layer/nuxt.schema.tsdescribes the app config withfield()andgroup()from@nuxt/content/preview. They only add@previewInputand@previewIcontags for the app config form of the old hosted Nuxt Studio.nuxt-studio1.x doesn't read them, and Content v4 doesn't export@nuxt/content/preview: on v4, Nuxt drops the schema (NUXT_B5005) andnuxt typecheckfails withTS2307.What changed
layer/nuxt.schema.tsand its entry in the layer'sfiles.navigation.subin theAppConfigaugmentation inlayer/app/types. It was the only key the schema typed that the augmentation didn't (Nuxt UI typesuiitself).useSubNavigationdrops its cast.Evidence
On
@nuxt/content3.16.2 (current dependencies):pnpm run lint,pnpm run typecheckandpnpm run testpass. The test run has one fewer case:package-files.test.tsgenerates one per entry oflayer/, andnuxt.schema.tsis gone.nuxt build docs(Vercel): 226 routes and 42 pages, andpnpm check:vercel-output docspasses.scripts/test-starter.sh defaultbuilds and typechecks.On the Content v4 preview (
@nuxt/content4, nuxt/content-v4-temp): noNUXT_B5005and noTS2307.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.