computesdk 2.1.2 → 2.2.0
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/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3913,6 +3913,14 @@ function getProviderHeaders(provider) {
|
|
|
3913
3913
|
headers["X-HOPX-API-Key"] = process.env.HOPX_API_KEY;
|
|
3914
3914
|
}
|
|
3915
3915
|
break;
|
|
3916
|
+
case "render":
|
|
3917
|
+
if (process.env.RENDER_API_KEY) {
|
|
3918
|
+
headers["X-Render-API-Key"] = process.env.RENDER_API_KEY;
|
|
3919
|
+
}
|
|
3920
|
+
if (process.env.RENDER_OWNER_ID) {
|
|
3921
|
+
headers["X-Render-Owner-ID"] = process.env.RENDER_OWNER_ID;
|
|
3922
|
+
}
|
|
3923
|
+
break;
|
|
3916
3924
|
}
|
|
3917
3925
|
return headers;
|
|
3918
3926
|
}
|
|
@@ -3951,9 +3959,10 @@ To fix this, set one of the following:
|
|
|
3951
3959
|
Blaxel: export BL_API_KEY=xxx BL_WORKSPACE=xxx
|
|
3952
3960
|
Namespace: export NSC_TOKEN=xxx
|
|
3953
3961
|
HopX: export HOPX_API_KEY=xxx
|
|
3962
|
+
Render: export RENDER_API_KEY=xxx RENDER_OWNER_ID=xxx
|
|
3954
3963
|
|
|
3955
3964
|
Or set COMPUTESDK_PROVIDER to specify explicitly:
|
|
3956
|
-
export COMPUTESDK_PROVIDER
|
|
3965
|
+
export COMPUTESDK_PROVIDER=<provider>
|
|
3957
3966
|
|
|
3958
3967
|
Docs: https://computesdk.com/docs/quickstart`
|
|
3959
3968
|
);
|