Skip to content

Commit 5602ad2

Browse files
committed
fix(frontend): use relative API base URL instead of localhost:8000
1 parent 4f7e1cc commit 5602ad2

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/src/app/services/api.client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Observable } from 'rxjs';
1010
providedIn: 'root'
1111
})
1212
export class ApiClient {
13-
private static readonly fallbackBaseUrl = 'http://localhost:8000';
13+
private static readonly fallbackBaseUrl = '';
1414
private baseUrl: string;
1515

1616
constructor(private http: HttpClient) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const environment = {
22
production: true,
3-
apiUrl: 'https://api.example.com'
3+
apiUrl: ''
44
};

frontend/src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
export const environment = {
55
production: false,
6-
apiUrl: 'http://localhost:8000'
6+
apiUrl: ''
77
};

0 commit comments

Comments
 (0)