Revert "build: allow node package depends on workspace packages (#11892)"

This reverts commit c00671dd84.
This commit is contained in:
liuyi
2025-04-23 19:24:51 +08:00
parent c00671dd84
commit 5d9a3aac5b
28 changed files with 327 additions and 328 deletions
+16 -7
View File
@@ -1,11 +1,20 @@
/// <reference types="./global.d.ts" />
import './prelude';
import { run as runCli } from './cli';
import { run as runServer } from './server';
import { Logger } from '@nestjs/common';
if (env.flavors.script) {
await runCli();
} else {
await runServer();
}
import { createApp } from './app';
import { Config, URLHelper } from './base';
const app = await createApp();
const config = app.get(Config);
const url = app.get(URLHelper);
const listeningHost = '0.0.0.0';
await app.listen(config.server.port, listeningHost);
const logger = new Logger('App');
logger.log(`AFFiNE Server is running in [${env.DEPLOYMENT_TYPE}] mode`);
logger.log(`Listening on http://${listeningHost}:${config.server.port}`);
logger.log(`And the public server should be recognized as ${url.home}`);