Skip to content

Commit 505e1fa

Browse files
committed
testing with EXHORT_BACKEND_URL
1 parent c81602c commit 505e1fa

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,12 @@ function selectExhortBackend(opts = {}) {
102102
readAndPrintVersionFromPackageJson();
103103
}
104104

105-
const result = getCustom('EXHORT_BACKEND_URL', undefined, opts);
105+
let url;
106+
if (getCustom('EXHORT_DEV_MODE', false, opts)) {
107+
url = 'https://exhort.stage.devshift.net';
108+
} else {
109+
url = getCustom('EXHORT_BACKEND_URL', undefined, opts);
110+
}
106111

107112
if (!result) {
108113
throw new Error(`EXHORT_BACKEND_URL is unset`)

0 commit comments

Comments
 (0)