Closed xjccc closed 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
https://github.com/nuxt/nuxt/pull/28270
Format tags in new line.