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.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(server): command line nestjs does not have http adapter (#7876)
forehalo9192ac442077
diff --git a/packages/backend/server/src/core/selfhost/index.ts b/packages/backend/server/src/core/selfhost/index.tsindex 58a780d170..0c559767e8 100644--- a/packages/backend/server/src/core/selfhost/index.ts+++ b/packages/backend/server/src/core/selfhost/index.ts@@ -60,6 +60,11 @@ export class SelfhostModule implements OnModuleInit {onModuleInit() {const staticPath = join(this.config.projectRoot, 'static');+ // in command line mode+ if (!this.adapterHost.httpAdapter) {+ return;+ }+const app = this.adapterHost.httpAdapter.getInstance<Application>();const basePath = this.config.server.path;