Skip to content

Commit 0693c1c

Browse files
authored
Update api.js
Update base URLs to catch .flex.doptig.cloud domains
1 parent 472585d commit 0693c1c

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)