update
This commit is contained in:
@@ -7,7 +7,7 @@ import './ai/index.ts';
|
||||
import './user/index.ts';
|
||||
|
||||
// TODO: 移除
|
||||
import './hot-api/key-sender/index.ts';
|
||||
// import './hot-api/key-sender/index.ts';
|
||||
|
||||
import os from 'node:os';
|
||||
import { authCache } from '@/module/cache/auth.ts';
|
||||
|
||||
@@ -143,7 +143,7 @@ program
|
||||
} else if (options.start) {
|
||||
console.log('启动服务', chalk.green(assistantConfig.configDir));
|
||||
const config = assistantConfig.getCacheAssistantConfig();
|
||||
const listenPort = options.port || config?.server?.port;
|
||||
const listenPort = parseInt(options.port || config?.server?.port);
|
||||
const listenPath = config?.server?.path || '::';
|
||||
const server = await runServer(listenPort, listenPath);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user