mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat(server): self-hosted worker (#10085)
This commit is contained in:
@@ -89,4 +89,7 @@ if (AFFiNE.deploy) {
|
||||
};
|
||||
|
||||
AFFiNE.use('gcloud');
|
||||
} else {
|
||||
// only enable dev mode
|
||||
AFFiNE.use('worker');
|
||||
}
|
||||
|
||||
@@ -161,3 +161,8 @@ AFFiNE.server.port = 3010;
|
||||
// bucket: 'copilot',
|
||||
// }
|
||||
// })
|
||||
//
|
||||
// /* AFFiNE Link Preview & Image Proxy API */
|
||||
// AFFiNE.use('worker', {
|
||||
// allowedOrigin: ['example.com'],
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user