nuxt / nuxt.com

The Nuxt website, made with Nuxt.
https://nuxt.com
MIT License
290 stars 145 forks source link

feat: show tags in new line #1629

Closed xjccc closed 1 month ago

xjccc commented 1 month ago

https://github.com/nuxt/nuxt/pull/28270

Format tags in new line.

xjccc commented 1 month ago

I find that configuration generate by remote.

How about add a env - NUXT_PUBLIC_SCHEMA_PATH for dev mode?

 const rootSchema = import.meta.dev ? JSON.parse(await readFile(process.env.NUXT_PUBLIC_SCHEMA_PATH, { encoding: 'utf-8' })) : await $fetch<Schema>('https://unpkg.com/@nuxt/schema@latest/schema/config.schema.json')

And add the nuxt schema path /nuxt/packages/schema/schema/config.schema.json