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
feat(cli): programmatically pass nuxt config overrides (to dev) #19371
Conversation
Β Open in CodeSandbox Web Editor | VS Code | VS Code Insiders |
Generally love the idea (tbh always been thinking to have it). Only there is a concern about I think we should use For object passing, we might use |
@pi0 I'm not sure if passing the config via environment variables alone will be sufficient since a config can contain functions (e.g. a module imported and passed directly). I think there is no way around passing the config as a JS object directly. |
Fair enough. Only since |
@pi0 yeah I linked a PR that does a similar thing (adding it to args) |
π Linked issue
#19347
β Type of change
π Description
Allows to pass additional options to
runCommand
, so a Nuxt config can be passed programmatically. Resolves #19347. This isn't really a clean solution. Clean would be to have a function with the logic and the command consumes this function. The logic is also exported and someone can use it instead of the command.π Checklist