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.

feat: enable https in production (#4154)

DarkSkye72a10153e28
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: '',