diff --git a/vite.config.ts b/vite.config.ts index acc8cb4..d69c8d5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -35,8 +35,8 @@ export default defineConfig({ }, }, { - //this forces all api calls to go through the network - urlPattern: ({ url }) => url.pathname.startsWith('/v1/'), + // 🚀 Corrected rule: match full API domain + urlPattern: ({ url }) => url.origin === 'https://stagingapi.brandxtech.ca' && url.pathname.startsWith('/v1/'), handler: 'NetworkOnly', options: { cacheName: 'api-cache',