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

fix: add sanity options from runtimeconfig to module defaults #319

Merged
merged 1 commit into from
Feb 19, 2022

Conversation

YannicEl
Copy link
Contributor

In the docs for this module its says that you can also pass options through nuxt runtime configuration. This works as intended except when the proejctId is only specified in the runtime config. The config is validated bevor it is merged with option specified in the runtime config. Therefore, when the projectId is specified only in the runtime config the config is deemed invalid and the module won’t be initialized.

This problem could be solved if the options specified in runtime config are merged into the default options as shown in this pull request. I think this would also make this part redundant but I’m not sure.

Happy to hear your opinions on this topic!

Copy link
Collaborator

@danielroe danielroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good - thank you!

@danielroe danielroe changed the title Add sanity options from runtimeconfig to module defaults fix: add sanity options from runtimeconfig to module defaults Feb 19, 2022
@danielroe danielroe merged commit a167ef2 into nuxt-modules:main Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants