fix(server): selfhost fixes (#7140)

fixes #6708, fixes #7139
This commit is contained in:
forehalo
2024-06-04 08:42:25 +00:00
parent 412b919ec6
commit 01fc1ea835
3 changed files with 12 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ async function load() {
// 2. generate AFFiNE default config and assign to `globalThis.AFFiNE`
globalThis.AFFiNE = getAFFiNEConfigModifier();
globalThis.AFFiNE.use = enablePlugin;
globalThis.AFFiNE.plugins.use = enablePlugin;
// TODO(@forehalo):
// Modules may contribute to ENV_MAP, figure out a good way to involve them instead of hardcoding in `./config/affine.env`