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.js
CHANGED
|
@@ -3968,6 +3968,14 @@ function getProviderHeaders(provider) {
|
|
|
3968
3968
|
headers["X-HOPX-API-Key"] = process.env.HOPX_API_KEY;
|
|
3969
3969
|
}
|
|
3970
3970
|
break;
|
|
3971
|
+
case "render":
|
|
3972
|
+
if (process.env.RENDER_API_KEY) {
|
|
3973
|
+
headers["X-Render-API-Key"] = process.env.RENDER_API_KEY;
|
|
3974
|
+
}
|
|
3975
|
+
if (process.env.RENDER_OWNER_ID) {
|
|
3976
|
+
headers["X-Render-Owner-ID"] = process.env.RENDER_OWNER_ID;
|
|
3977
|
+
}
|
|
3978
|
+
break;
|
|
3971
3979
|
}
|
|
3972
3980
|
return headers;
|
|
3973
3981
|
}
|
|
@@ -4006,9 +4014,10 @@ To fix this, set one of the following:
|
|
|
4006
4014
|
Blaxel: export BL_API_KEY=xxx BL_WORKSPACE=xxx
|
|
4007
4015
|
Namespace: export NSC_TOKEN=xxx
|
|
4008
4016
|
HopX: export HOPX_API_KEY=xxx
|
|
4017
|
+
Render: export RENDER_API_KEY=xxx RENDER_OWNER_ID=xxx
|
|
4009
4018
|
|
|
4010
4019
|
Or set COMPUTESDK_PROVIDER to specify explicitly:
|
|
4011
|
-
export COMPUTESDK_PROVIDER
|
|
4020
|
+
export COMPUTESDK_PROVIDER=<provider>
|
|
4012
4021
|
|
|
4013
4022
|
Docs: https://computesdk.com/docs/quickstart`
|
|
4014
4023
|
);
|