feat: enable https in production (#4154)

Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
DarkSky 2023-09-04 17:20:11 +08:00 committed by GitHub
parent 1066a8ca74
commit e72a10153e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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