image
image copied to clipboard
fix(setup): Setup provider using the `provider` key
๐ Linked issue
Fixes #1414
โ Type of change
- [ ] ๐ Documentation (updates to the documentation or readme)
- [x] ๐ Bug fix (a non-breaking change that fixes an issue)
- [ ] ๐ Enhancement (improving an existing functionality)
- [ ] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
Because the name is user provided and can (and should be different if we have multiple instances of one provider) then any name different than the provider name (eg: my-remote-ipx instead of ipx) will not setup the provider as expected
Drafting this for now as there is some weird things going on with ipx
if (typeof p.setup === "function" && p.name !== "ipx" && p.name !== "ipxStatic") {
await p.setup(p, options, nuxt);
}
Because we can't use nitro so early
would you be able to add an example of the usage you have in mind, perhaps by adding it to the test fixture? ๐