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 69e8bca commit faacae7Copy full SHA for faacae7
frontend/src/services/api.js
@@ -1,5 +1,5 @@
1
const API_BASE_URL = window.location.hostname.endsWith('.gitpod.dev')
2
- ? 'https://3001--01965c3b-370d-7463-845d-125a1daa5fab.eu01.gitpod.dev/api'
+ ? `https://3001--${window.location.hostname.replace(/\d{1,4}--/, '')}/api`
3
: 'http://localhost:3001/api';
4
5
export const fetchMovies = async () => {
0 commit comments