Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore(core): wrong worker url prefix (#11769)

liuyibfecd1856b5c
diff --git a/packages/common/env/src/worker.ts b/packages/common/env/src/worker.ts
index a5e401a4b1..d0675462e9 100644
--- a/packages/common/env/src/worker.ts
+++ b/packages/common/env/src/worker.ts
@@ -1,6 +1,7 @@
export function getWorkerUrl(name: string) {
return (
- environment.publicPath +
+ // NOTE: worker can not use publicPath because it must obey the same-origin policy
+ (environment.subPath || '/') +
'js/' +
`${name}-${BUILD_CONFIG.appVersion}.worker.js`
);