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.

fix(server): no more selfhost paths (#8530)

forehalob7fac5acb838
diff --git a/packages/backend/server/src/core/doc-renderer/controller.ts b/packages/backend/server/src/core/doc-renderer/controller.ts
index 243ad9ea68..7ab95f312a 100644
--- a/packages/backend/server/src/core/doc-renderer/controller.ts
+++ b/packages/backend/server/src/core/doc-renderer/controller.ts
@@ -56,16 +56,10 @@ export class DocRendererController {
private readonly url: URLHelper
) {
this.webAssets = this.readHtmlAssets(
- join(
- this.config.projectRoot,
- this.config.isSelfhosted ? 'static/selfhost' : 'static'
- )
+ join(this.config.projectRoot, 'static')
);
this.mobileAssets = this.readHtmlAssets(
- join(
- this.config.projectRoot,
- this.config.isSelfhosted ? 'static/mobile/selfhost' : 'static/mobile'
- )
+ join(this.config.projectRoot, 'static/mobile')
);
}