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:
Scott Idem
2026-01-21 16:49:33 -05:00
parent 09c7d2440a
commit 8fae3aa89a
6 changed files with 87 additions and 74 deletions

View File

@@ -14,6 +14,9 @@ const config = {
inspector: true
},
kit: {
serviceWorker: {
register: false
},
adapter: adapter_node()
// adapter: adapter_static({