-
-
Notifications
You must be signed in to change notification settings - Fork 1k
feat(nuxt): app.config
improvements
#6905
Conversation
β Deploy Preview for nuxt3-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Thanks for PR @Tahul! I think after resolving comments it is good to go ππΌ Please for next ones keep them small to one change. |
If by "inside Nuxt" you mean within modules, it is not possible. App config is a runtime template and merged and available only on runtime. Modules can access or extend it via a runtime plugin. |
app.config
improvements
I mean from inside Nuxt, this seem needed to generate typings and support |
We have access to |
I understand we have access to nuxt.options.appConfig, but does that mean people can only write their schema from |
I don't expect ordinary people to use (advanced) _schema feature we are planning to add. But yes it is a built-time thing for schema not runtime. Defined either using nuxt.config or hooks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
π Linked issue
nuxt/nuxt#14670
β Type of change
π Description
Resolves:
arrayFn
as suggested inapp.config
improvementsΒ nuxt#14670null
when going from a play array to function format)function
format seem to introduce a bit of overhead for the user to understand when reading config files.Few notes about this:
I've seen appConfig merging occurs in built template here, considering that, what is the proper way to implement features that needs to have access to the fully merged app config file inside Nuxt?
In nuxt/nuxt#14670, there is mentions to:
I would love to help on these issues but need guidance on how to resolve the whole appConfig object from Nuxt side, in order to generate typings from it.
π Checklist