diff --git a/src/platform/web/index.html b/src/platform/web/index.html
index 3b0e6e72..f7aeeed7 100644
--- a/src/platform/web/index.html
+++ b/src/platform/web/index.html
@@ -19,7 +19,7 @@
import {main} from "./main";
import {Platform} from "./Platform";
import configJSON from "./assets/config.json?raw";
- import {olmPaths, downloadSandboxPath, workerPath, serviceWorkerPath} from "./sdk/paths/vite";
+ import {olmPaths, downloadSandboxPath, workerPath} from "./sdk/paths/vite";
const paths = {
olm: olmPaths,
downloadSandbox: downloadSandboxPath,
@@ -27,7 +27,7 @@
...JSON.parse(configJSON)
};
if (import.meta.env.PROD) {
- paths.serviceWorker = serviceWorkerPath;
+ paths.serviceWorker = "sw.js";
}
const platform = new Platform(
document.body,
diff --git a/src/platform/web/sdk/paths/vite.ts b/src/platform/web/sdk/paths/vite.ts
index 0a3ddedd..6739f8d8 100644
--- a/src/platform/web/sdk/paths/vite.ts
+++ b/src/platform/web/sdk/paths/vite.ts
@@ -17,6 +17,3 @@ export const olmPaths = {
export const downloadSandboxPath = _downloadSandboxPath;
export const workerPath = _workerPath;
-// the service worker is generated by the build as an unhashed asset,
-// we don't use it at development time, so don't use import for the path
-export const serviceWorkerPath = "sw.js";