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.

chore(server): change default deployment type in dev mode (#11593)

liuyib8e93ed714f2
diff --git a/packages/backend/server/src/env.ts b/packages/backend/server/src/env.ts
index 76ce55b976..c308e88d47 100644
--- a/packages/backend/server/src/env.ts
+++ b/packages/backend/server/src/env.ts
@@ -80,7 +80,7 @@ export class Env implements AppEnv {
);
DEPLOYMENT_TYPE = readEnv(
'DEPLOYMENT_TYPE',
- DeploymentType.Selfhosted,
+ this.dev ? DeploymentType.Affine : DeploymentType.Selfhosted,
Object.values(DeploymentType)
);
FLAVOR = readEnv('SERVER_FLAVOR', Flavor.AllInOne, Object.values(Flavor));