fix(web-app): remove unused sqlite.worker.js and wasi-dummy.js, update Config.kt and service worker logic

- Deleted `sqlite.worker.js` and `wasi-dummy.js` to clean up outdated resources.
- Updated `Config.kt` to use a shared `Json` instance for deserialization.
- Revised service worker for cache versioning and to bypass caching of `web-app.js` and `.map` files.
- Enhanced debug logging and improved handling of uncaught errors in new `sqlite.worker.js`.

Signed-off-by: Stefan Mogeritsch <stefan.mo.co@gmail.com>
This commit is contained in:
2026-03-16 10:14:06 +01:00
parent 1db49970d1
commit b6fda98c89
10 changed files with 83 additions and 212 deletions
@@ -31,7 +31,7 @@ actual object PlatformConfig {
return resolvedUrl
}
// 3) Fallback to the local gateway directly (e.g. for tests without window)
// 3) Fallback to the local gateway directly (e.g., for tests without a window)
val fallbackUrl = "http://localhost:8081/api"
console.log("[PlatformConfig] Fallback API_BASE_URL: $fallbackUrl")
return fallbackUrl