We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ba2fbc commit ceeaff7Copy full SHA for ceeaff7
packages/cubejs-cli/deploy.js
@@ -9,6 +9,9 @@ const { logStage } = require('./utils');
9
const cloudReq = (options) => {
10
const { url, auth, ...restOptions } = options;
11
const authorization = auth || process.env.CUBE_CLOUD_DEPLOY_AUTH;
12
+ if (!authorization) {
13
+ throw new (`CUBE_CLOUD_DEPLOY_AUTH isn't set`);
14
+ }
15
const payload = jwt.decode(authorization);
16
if (!payload.url || !payload.deploymentId) {
17
throw new (`Malformed token: ${authorization}`);
0 commit comments