nitro icon indicating copy to clipboard operation
nitro copied to clipboard

Automatically generate runtime config types from nitro.config the same as Nuxt

Open McPizza0 opened this issue 11 months ago • 14 comments

Describe the feature

In Nuxt runtimeConfig keys/values are typed. This improves DX considerably when accessing vis useRuntimeConfig()

Nitro has not yet implemented this, which can cause some confusion for users coming over from Nuxt

Result: useRuntimeConfig() should be aware of the keys that exist in nitro.config.ts, and provide correct types

Additional information

  • [ ] Would you be willing to help implement this feature?

McPizza0 avatar Sep 08 '23 12:09 McPizza0