diff --git a/packages/backend/server/src/core/doc-renderer/controller.ts b/packages/backend/server/src/core/doc-renderer/controller.ts index 9c7fb17f79..e0ef91c924 100644 --- a/packages/backend/server/src/core/doc-renderer/controller.ts +++ b/packages/backend/server/src/core/doc-renderer/controller.ts @@ -149,6 +149,7 @@ export class DocRendererController { // TODO(@forehalo): how can we enable the type reference to @affine/env const env: Record = { publicPath: assets.publicPath, + renderer: 'ssr', }; if (this.config.isSelfhosted) { @@ -180,7 +181,7 @@ export class DocRendererController { ${title} - ${assets.publicPath.startsWith('/') ? '' : ``} + ${assets.publicPath.startsWith('/') ? '' : ``} @@ -197,7 +198,6 @@ export class DocRendererController { - ${Object.entries(env) .map(([key, val]) => ``) .join('\n')}