mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
feat(admin): init project (#7197)
This commit is contained in:
@@ -177,6 +177,14 @@ function buildAppModule() {
|
||||
config => config.isSelfhosted,
|
||||
ServeStaticModule.forRoot({
|
||||
rootPath: join('/app', 'static'),
|
||||
exclude: ['/admin*'],
|
||||
})
|
||||
)
|
||||
.useIf(
|
||||
config => config.isSelfhosted,
|
||||
ServeStaticModule.forRoot({
|
||||
rootPath: join('/app', 'static', 'admin'),
|
||||
serveRoot: '/admin',
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ const logger = new Logger('App');
|
||||
|
||||
logger.log(`AFFiNE Server is running in [${AFFiNE.type}] mode`);
|
||||
if (AFFiNE.node.dev) {
|
||||
logger.log('Startup Configration:');
|
||||
logger.log('Startup Configuration:');
|
||||
logger.log(omit(globalThis.AFFiNE, 'ENV_MAP'));
|
||||
}
|
||||
logger.log(`Listening on http://${listeningHost}:${AFFiNE.server.port}`);
|
||||
|
||||
Reference in New Issue
Block a user