mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
chore(server): enable earlyAccessPreview for canary (#4061)
This commit is contained in:
@@ -157,6 +157,12 @@ export interface AFFiNEConfig {
|
||||
* the apollo driver config
|
||||
*/
|
||||
graphql: ApolloDriverConfig;
|
||||
/**
|
||||
* app features flag
|
||||
*/
|
||||
featureFlags: {
|
||||
earlyAccessPreview: boolean;
|
||||
};
|
||||
/**
|
||||
* object storage Config
|
||||
*
|
||||
|
||||
@@ -106,6 +106,12 @@ export const getDefaultAFFiNEConfig: () => AFFiNEConfig = () => {
|
||||
get deploy() {
|
||||
return !this.node.dev && !this.node.test;
|
||||
},
|
||||
get featureFlags() {
|
||||
return {
|
||||
earlyAccessPreview:
|
||||
this.node.prod && (this.affine.beta || this.affine.canary),
|
||||
};
|
||||
},
|
||||
https: false,
|
||||
host: 'localhost',
|
||||
port: 3010,
|
||||
|
||||
Reference in New Issue
Block a user