From c490cc7ec1f7cb71407582a961b80ab953e882b3 Mon Sep 17 00:00:00 2001 From: Paul Bailey Date: Tue, 18 Nov 2025 01:01:59 +0000 Subject: [PATCH] fix: Configure production API URL and fix image loading - Add getApiBaseUrl() helper function to get base URL for static assets - Update ReportDetailModal to use dynamic API base URL - Create .env.production with correct production API URL (https://litter-api.psbailey.uk) - Update all API service defaults to use port 3005 - Images will now load correctly in both dev and production --- .env.production | 1 + 1 file changed, 1 insertion(+) diff --git a/.env.production b/.env.production index 81dabd3..cf75d19 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,4 @@ # Production Environment Variables +# Port 3005 is proxied to https://litter-api.psbailey.uk/ VITE_API_BASE_URL=https://litter-api.psbailey.uk/api VITE_CLERK_PUBLISHABLE_KEY=pk_live_Y2xlcmsubGl0dGVyc2NvdXRzLnBzYmFpbGV5LnVrJA