Skip to content
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

Use server: {} as standard configuration namespace #2196

Open
pi0 opened this issue Feb 29, 2024 · 2 comments
Open

Use server: {} as standard configuration namespace #2196

pi0 opened this issue Feb 29, 2024 · 2 comments
Labels
discussion documentation Improvements or additions to documentation enhancement New feature or request

Comments

@pi0
Copy link
Member

pi0 commented Feb 29, 2024

Currently in the docs we have lots of exceptions that Nuxt and Nitro config are different. This can be easily a case for any other meta framework.

Similar how vitest supports test key in vite config, we could do the same.

Our config loader could be smart to merge different sources and detect sub key usage for backward/forward compatibility.

@pi0 pi0 added documentation Improvements or additions to documentation enhancement New feature or request discussion labels Feb 29, 2024
@danielroe
Copy link
Member

As a documentation improvement and convention (so Nuxt moves nitro -> server) I think it would make a lot of sense. 👍

(I don't think you mean this, but worth saying that I'm not a fan of Nitro resolving config from the Nuxt config file separately, though.)

@pi0
Copy link
Member Author

pi0 commented Feb 29, 2024

Yeah no downstream logic to be in Nitro! It will make things just complexer i agree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants