diff --git a/apps/web/src/lib/api.ts b/apps/web/src/lib/api.ts index a06eadcb..047d309c 100644 --- a/apps/web/src/lib/api.ts +++ b/apps/web/src/lib/api.ts @@ -138,7 +138,9 @@ class ApiClient { // City Rooms async getCityRooms(): Promise { - return this.fetch('/api/city/rooms') + // Server-side: call backend directly, client-side: use proxy + const endpoint = typeof window === 'undefined' ? '/city/rooms' : '/api/city/rooms' + return this.fetch(endpoint) } async getCityRoom(slug: string): Promise {