Files
AFFiNE-Mirror/packages/common/env/src/worker.ts
T

9 lines
248 B
TypeScript

export function getWorkerUrl(name: string) {
return (
// NOTE: worker can not use publicPath because it must obey the same-origin policy
(environment.subPath || '/') +
'js/' +
`${name}-${BUILD_CONFIG.appVersion}.worker.js`
);
}