diff --git a/findadispo/frontend/Dockerfile b/findadispo/frontend/Dockerfile index 683b03ee..e751f6ae 100644 --- a/findadispo/frontend/Dockerfile +++ b/findadispo/frontend/Dockerfile @@ -12,9 +12,9 @@ RUN npm install # Copy source files COPY . . -# Set build-time environment variable for API URL (CRA uses REACT_APP_ prefix) -# All consumer sites use cannaiq.co/api as the backend -ENV REACT_APP_API_URL=https://cannaiq.co +# Note: REACT_APP_API_URL is intentionally NOT set here +# The frontend uses relative URLs (same domain) in production +# API calls go to /api/* which the ingress routes to the backend # Build the app (CRA produces /build, not /dist) RUN npm run build diff --git a/findagram/frontend/Dockerfile b/findagram/frontend/Dockerfile index 683b03ee..e751f6ae 100644 --- a/findagram/frontend/Dockerfile +++ b/findagram/frontend/Dockerfile @@ -12,9 +12,9 @@ RUN npm install # Copy source files COPY . . -# Set build-time environment variable for API URL (CRA uses REACT_APP_ prefix) -# All consumer sites use cannaiq.co/api as the backend -ENV REACT_APP_API_URL=https://cannaiq.co +# Note: REACT_APP_API_URL is intentionally NOT set here +# The frontend uses relative URLs (same domain) in production +# API calls go to /api/* which the ingress routes to the backend # Build the app (CRA produces /build, not /dist) RUN npm run build