From aea654fc18fd9b0427de108677265fe083967fe4 Mon Sep 17 00:00:00 2001 From: csawatzky Date: Wed, 15 Oct 2025 14:12:53 -0600 Subject: [PATCH] there was a slash in the url that should not have been there, removing it fixed the api call code from 307 back to 200 --- src/providers/pond/interactionsAPI.tsx | 3 +-- vite.config.ts | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/providers/pond/interactionsAPI.tsx b/src/providers/pond/interactionsAPI.tsx index bf9da13..26afb1e 100644 --- a/src/providers/pond/interactionsAPI.tsx +++ b/src/providers/pond/interactionsAPI.tsx @@ -90,8 +90,7 @@ export default function InteractionProvider(props: PropsWithChildren) { ) => { const view = otherTeam ? otherTeam : as let url = pondURL( - "/interactions/forComponents/" + - "?componentIds=" + + "/interactions/forComponents?componentIds=" + fullComponentLocations.toString() + (view ? "&as=" + view : "") ) diff --git a/vite.config.ts b/vite.config.ts index d69c8d5..acc8cb4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -35,8 +35,8 @@ export default defineConfig({ }, }, { - // 🚀 Corrected rule: match full API domain - urlPattern: ({ url }) => url.origin === 'https://stagingapi.brandxtech.ca' && url.pathname.startsWith('/v1/'), + //this forces all api calls to go through the network + urlPattern: ({ url }) => url.pathname.startsWith('/v1/'), handler: 'NetworkOnly', options: { cacheName: 'api-cache',