Skip to content

Commit 5eb1087

Browse files
authored
Merge pull request #73 from gitpod-samples/GMorcosEE-patch-1
Update api.js
2 parents 472585d + 0693c1c commit 5eb1087

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/services/api.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
const API_BASE_URL = window.location.hostname.endsWith('.gitpod.dev')
1+
const API_BASE_URL = (window.location.hostname.endsWith('.gitpod.dev') ||
2+
window.location.hostname.includes('.flex.doptig.cloud'))
23
? `https://3001--${window.location.hostname.replace(/\d{1,4}--/, '')}/api`
34
: 'http://localhost:3001/api';
45

0 commit comments

Comments
 (0)