mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 06:47:02 +08:00
4
packages/common/env/src/global.ts
vendored
4
packages/common/env/src/global.ts
vendored
@@ -16,8 +16,10 @@ export function setupGlobal() {
|
||||
isPwa: false,
|
||||
isMobile: false,
|
||||
isSelfHosted: false,
|
||||
// publicPath is the root of assets files
|
||||
publicPath: '/',
|
||||
workerPath: '/js/',
|
||||
// subPath is the path to access the affine service
|
||||
subPath: '',
|
||||
};
|
||||
|
||||
if (globalThis.navigator) {
|
||||
|
||||
4
packages/common/env/src/worker.ts
vendored
4
packages/common/env/src/worker.ts
vendored
@@ -1,5 +1,7 @@
|
||||
export function getWorkerUrl(name: string) {
|
||||
return (
|
||||
environment.workerPath + `${name}-${BUILD_CONFIG.appVersion}.worker.js`
|
||||
environment.publicPath +
|
||||
'js/' +
|
||||
`${name}-${BUILD_CONFIG.appVersion}.worker.js`
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user