mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-13 22:04:21 +03:00
fix(server): command line nestjs does not have http adapter (#7876)
This commit is contained in:
parent
57449c1530
commit
9192ac4420
@ -60,6 +60,11 @@ export class SelfhostModule implements OnModuleInit {
|
|||||||
|
|
||||||
onModuleInit() {
|
onModuleInit() {
|
||||||
const staticPath = join(this.config.projectRoot, 'static');
|
const staticPath = join(this.config.projectRoot, 'static');
|
||||||
|
// in command line mode
|
||||||
|
if (!this.adapterHost.httpAdapter) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const app = this.adapterHost.httpAdapter.getInstance<Application>();
|
const app = this.adapterHost.httpAdapter.getInstance<Application>();
|
||||||
const basePath = this.config.server.path;
|
const basePath = this.config.server.path;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user