From ee16ea7a5ab50ddbe803edc549d3eab8ea5d6961 Mon Sep 17 00:00:00 2001 From: forehalo Date: Mon, 4 Nov 2024 06:01:03 +0000 Subject: [PATCH] fix(server): avoid preserved html meta tag name (#8682) --- packages/backend/server/src/core/doc-renderer/controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')}