You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I mentioned in the official Nuxt Discord, can you please consider allowing users to use words/names such as app in project configuration?
It's short, strong meaning and definitely one of the most common for a configuration within a project. I think this approach that doesn't allow the use of such common names in the project configuration can be very confusing and problematic for debugging.
Code example
This worked fine until version 2.15.0, so it's kind of a breaking-change:
// nuxt.config.jsexportdefault{publicRuntimeConfig: {// Doesn't work after version '2.14.12'app: {title: 'New Title',titleSeparator: '-',titleTemplate: 'Title Template',description: 'New Description',},},}
Suggestion
As Daniel said in Discord chat:
Nuxt is using the app namespace for internal dynamic config.
It might make more sense to use alternatives under the hood (in Nuxt core such as _app or __app) and allow users to use the normal versions (such as app).
Other examples
This is allowed in Next.js.
The text was updated successfully, but these errors were encountered:
Hi and thanks for your work on Nuxt.
Request
As I mentioned in the official Nuxt
Discord
, can you please consider allowing users to use words/names such asapp
in project configuration?It's short, strong meaning and definitely one of the most common for a configuration within a project. I think this approach that doesn't allow the use of such common names in the project configuration can be very confusing and problematic for debugging.
Code example
This worked fine until version
2.15.0
, so it's kind of abreaking-change
:Suggestion
As Daniel said in Discord chat:
It might make more sense to use alternatives under the hood (in Nuxt core such as
_app
or__app
) and allow users to use the normal versions (such asapp
).Other examples
This is allowed in
Next.js
.The text was updated successfully, but these errors were encountered: