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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user