-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
feat(nuxt,schema): allow configuring vue AppConfig
#28873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
useId
prefixuseId
prefix
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.
Isn't this something configurable with app:created
hook ?
Good point, it is. The question is whether we should recommend creating a plugin like so:
... or prefer to set it in the Nuxt config. (I don't have a strong opinion on this matter and happy to close the PR if using a hook is the preferred way.) |
I'm in favor of letting users create a plugin. But our documentation may require a change if this wasn't clear enough that we can set runtime config of vue within a plugin 👀 |
I can see a benefit to allowing users to define the serialisable bits of the vue app config in their nuxt.config file. could we generalise this a bit, maybe with |
@danielroe updated 👌 |
useId
prefixAppConfig
AppConfig
AppConfig
AppConfig
AppConfig
🔗 Linked issue
#28285 (comment)
📚 Description
This allows for configuring the Vue's
app.config.idPrefix
throughvue.idPrefix
in Nuxt config.Thoughts on the name? Shall we consider
vue.useIdPrefix
?