@computesdk/workbench 3.1.9 → 3.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/workbench.js +8 -1
- package/dist/bin/workbench.js.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
package/dist/bin/workbench.js
CHANGED
|
@@ -695,7 +695,14 @@ async function getComputeInstance(state) {
|
|
|
695
695
|
});
|
|
696
696
|
} else {
|
|
697
697
|
const { compute: gatewayCompute } = await import("computesdk");
|
|
698
|
-
|
|
698
|
+
const providerConfig = getProviderConfig(providerName);
|
|
699
|
+
const gatewayConfig = getProviderConfig("gateway");
|
|
700
|
+
compute2 = gatewayCompute({
|
|
701
|
+
provider: providerName,
|
|
702
|
+
computesdkApiKey: gatewayConfig.apiKey,
|
|
703
|
+
// Spread provider-specific config
|
|
704
|
+
[providerName]: providerConfig
|
|
705
|
+
});
|
|
699
706
|
}
|
|
700
707
|
state.compute = compute2;
|
|
701
708
|
return compute2;
|