Fix(ServiceWorker): Mitigate persistent TypeError by disabling auto-registration
- Mitigation: Disabled `serviceWorker.register` in `svelte.config.js` to stop the loop of `TypeError` during script evaluation. - Debug Tool: Preserved the `fix-sw` cache clearing utility by moving it to `src/routes/testing/fix-sw/+page.svelte` for future investigation. - Service Worker: Simplified `src/service-worker.js` to a minimal "Hello World" state and removed the problematic `.ts` version. - Cleanup: Minor formatting adjustment in `ae_events_functions.ts`. - Docs: Updated `TODO.md` and `GEMINI.md` to reflect the mitigation and planned follow-up.
This commit is contained in:
@@ -14,6 +14,9 @@ const config = {
|
||||
inspector: true
|
||||
},
|
||||
kit: {
|
||||
serviceWorker: {
|
||||
register: false
|
||||
},
|
||||
adapter: adapter_node()
|
||||
|
||||
// adapter: adapter_static({
|
||||
|
||||
Reference in New Issue
Block a user