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',