Revert "fix(server): wrong usage of optl (#6714)"

This reverts commit 4868f6e611.
This commit is contained in:
forehalo
2024-07-19 11:31:01 +08:00
parent 585003640f
commit 90c00b6db9
11 changed files with 70 additions and 182 deletions
-2
View File
@@ -6,9 +6,7 @@ import { omit } from 'lodash-es';
import { createApp } from './app';
import { URLHelper } from './fundamentals';
import { registerInstrumentations } from './fundamentals/metrics';
registerInstrumentations();
const app = await createApp();
const listeningHost = AFFiNE.deploy ? '0.0.0.0' : 'localhost';
await app.listen(AFFiNE.server.port, listeningHost);