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')
|
readFileSync(manifestPath, 'utf-8')
|
||||||
);
|
);
|
||||||
|
|
||||||
const publicPath = this.config.isSelfhosted
|
const publicPath = this.config.isSelfhosted ? '/' : assets.publicPath;
|
||||||
? this.config.server.host + '/'
|
|
||||||
: assets.publicPath;
|
|
||||||
|
|
||||||
assets.publicPath = publicPath;
|
assets.publicPath = publicPath;
|
||||||
assets.js = assets.js.map(path => publicPath + path);
|
assets.js = assets.js.map(path => publicPath + path);
|
||||||
|
|||||||
Reference in New Issue
Block a user