From 7fe7d17b4309596f8c07b9d306f3e425508323b5 Mon Sep 17 00:00:00 2001 From: Kelly Date: Tue, 9 Dec 2025 13:38:10 -0700 Subject: [PATCH] fix(consumer): Use relative API URLs for findadispo/findagram MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The consumer frontends were hardcoded to use cannaiq.co as the API URL, but each domain has its own /api path in the ingress that routes to the shared backend. Using relative URLs allows each site to make API calls to its own domain. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- findadispo/frontend/Dockerfile | 6 +++--- findagram/frontend/Dockerfile | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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