Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(pwa): don't register /api as a service-worker runtime route

nirholas677c2d148927
diff --git a/vite.config.js b/vite.config.js
index f82f2023b..79784df82 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -1273,10 +1273,14 @@ const appConfig = {
cacheableResponse: { statuses: [0, 200] },
},
},
- {
- urlPattern: /^https:\/\/three\.ws\/api\/.*/i,
- handler: 'NetworkOnly',
- },
+ // NOTE: /api/* is intentionally NOT registered as a runtime
+ // route. No route → the SW never calls respondWith for API
+ // requests, so the browser fetches them natively (still
+ // network-only, never cached). A NetworkOnly rule here would
+ // be behaviourally identical on success but re-wraps any
+ // transient fetch rejection as an uncaught `no-response`
+ // WorkboxError, spamming the console. Let the page's own
+ // fetch().catch own those failures instead.
],
},
}),