@computesdk/workbench 3.1.8 → 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 +13 -13
package/dist/index.js
CHANGED
|
@@ -690,7 +690,14 @@ async function getComputeInstance(state) {
|
|
|
690
690
|
});
|
|
691
691
|
} else {
|
|
692
692
|
const { compute: gatewayCompute } = await import("computesdk");
|
|
693
|
-
|
|
693
|
+
const providerConfig = getProviderConfig(providerName);
|
|
694
|
+
const gatewayConfig = getProviderConfig("gateway");
|
|
695
|
+
compute2 = gatewayCompute({
|
|
696
|
+
provider: providerName,
|
|
697
|
+
computesdkApiKey: gatewayConfig.apiKey,
|
|
698
|
+
// Spread provider-specific config
|
|
699
|
+
[providerName]: providerConfig
|
|
700
|
+
});
|
|
694
701
|
}
|
|
695
702
|
state.compute = compute2;
|
|
696
703
|
return compute2;
|