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
This commit is contained in:
parent
bd7afb86c2
commit
aea654fc18
2 changed files with 3 additions and 4 deletions
|
|
@ -90,8 +90,7 @@ export default function InteractionProvider(props: PropsWithChildren<Props>) {
|
||||||
) => {
|
) => {
|
||||||
const view = otherTeam ? otherTeam : as
|
const view = otherTeam ? otherTeam : as
|
||||||
let url = pondURL(
|
let url = pondURL(
|
||||||
"/interactions/forComponents/" +
|
"/interactions/forComponents?componentIds=" +
|
||||||
"?componentIds=" +
|
|
||||||
fullComponentLocations.toString() +
|
fullComponentLocations.toString() +
|
||||||
(view ? "&as=" + view : "")
|
(view ? "&as=" + view : "")
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,8 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// 🚀 Corrected rule: match full API domain
|
//this forces all api calls to go through the network
|
||||||
urlPattern: ({ url }) => url.origin === 'https://stagingapi.brandxtech.ca' && url.pathname.startsWith('/v1/'),
|
urlPattern: ({ url }) => url.pathname.startsWith('/v1/'),
|
||||||
handler: 'NetworkOnly',
|
handler: 'NetworkOnly',
|
||||||
options: {
|
options: {
|
||||||
cacheName: 'api-cache',
|
cacheName: 'api-cache',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue