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.

fix: copilot storage config (#6650)

darkskygitae679a937f20
diff --git a/packages/backend/server/src/config/affine.self.ts b/packages/backend/server/src/config/affine.self.ts
index 736b87e9f3..87adcee24d 100644
--- a/packages/backend/server/src/config/affine.self.ts
+++ b/packages/backend/server/src/config/affine.self.ts
@@ -36,6 +36,11 @@ if (env.R2_OBJECT_STORAGE_ACCOUNT_ID) {
AFFiNE.storage.storages.blob.bucket = `workspace-blobs-${
AFFiNE.affine.canary ? 'canary' : 'prod'
}`;
+
+ AFFiNE.storage.storages.copilot.provider = 'cloudflare-r2';
+ AFFiNE.storage.storages.copilot.bucket = `workspace-copilot-${
+ AFFiNE.affine.canary ? 'canary' : 'prod'
+ }`;
}
AFFiNE.plugins.use('copilot', {