From e72a10153e28078cd36dfdf1e67c7685d4214b15 Mon Sep 17 00:00:00 2001 From: DarkSky <25152247+darkskygit@users.noreply.github.com> Date: Mon, 4 Sep 2023 17:20:11 +0800 Subject: [PATCH] feat: enable https in production (#4154) Co-authored-by: Peng Xiao --- apps/server/src/config/default.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/server/src/config/default.ts b/apps/server/src/config/default.ts index 3aae4b9d02..8f9b9eb52d 100644 --- a/apps/server/src/config/default.ts +++ b/apps/server/src/config/default.ts @@ -115,7 +115,9 @@ export const getDefaultAFFiNEConfig: () => AFFiNEConfig = () => { this.node.prod && (this.affine.beta || this.affine.canary), }; }, - https: false, + get https() { + return !this.node.dev; + }, host: 'localhost', port: 3010, path: '',