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.
2 parents 472585d + 0693c1c commit 5eb1087Copy full SHA for 5eb1087
frontend/src/services/api.js
@@ -1,4 +1,5 @@
1
-const API_BASE_URL = window.location.hostname.endsWith('.gitpod.dev')
+const API_BASE_URL = (window.location.hostname.endsWith('.gitpod.dev') ||
2
+ window.location.hostname.includes('.flex.doptig.cloud'))
3
? `https://3001--${window.location.hostname.replace(/\d{1,4}--/, '')}/api`
4
: 'http://localhost:3001/api';
5
0 commit comments