mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 20:16:26 +08:00
fix(server): wrong public path for selfhosted doc renderer (#8660)
closes #8639
This commit is contained in:
@@ -222,9 +222,7 @@ export class DocRendererController {
|
||||
readFileSync(manifestPath, 'utf-8')
|
||||
);
|
||||
|
||||
const publicPath = this.config.isSelfhosted
|
||||
? this.config.server.host + '/'
|
||||
: assets.publicPath;
|
||||
const publicPath = this.config.isSelfhosted ? '/' : assets.publicPath;
|
||||
|
||||
assets.publicPath = publicPath;
|
||||
assets.js = assets.js.map(path => publicPath + path);
|
||||
|
||||
Reference in New Issue
Block a user