feat(server): self-hosted worker (#10085)

This commit is contained in:
DarkSky
2025-02-12 08:01:57 +08:00
committed by GitHub
parent 19f0eb1931
commit 88a3a2d13b
23 changed files with 817 additions and 20 deletions

View File

@@ -89,4 +89,7 @@ if (AFFiNE.deploy) {
};
AFFiNE.use('gcloud');
} else {
// only enable dev mode
AFFiNE.use('worker');
}

View File

@@ -161,3 +161,8 @@ AFFiNE.server.port = 3010;
// bucket: 'copilot',
// }
// })
//
// /* AFFiNE Link Preview & Image Proxy API */
// AFFiNE.use('worker', {
// allowedOrigin: ['example.com'],
// });