revert: restore v1.1.14 (37a9f303)
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
shishengliang
2026-09-16 09:29:30 +08:00
parent c49a02e3d9
commit 6ea1b3d5dd
210 changed files with 4448 additions and 36179 deletions
+6 -6
View File
@@ -1,15 +1,15 @@
import { serve } from '@hono/node-server';
import dotenv from 'dotenv';
import { createApp } from './app.js';
import { startBackgroundServices } from './bootstrap.js';
import { assertRuntimeConfig, serverConfig } from './config.js';
// 配置错误在启动期暴露,而不是等到第一次请求才 500。
assertRuntimeConfig();
dotenv.config();
const app = createApp();
const port = Number(process.env.SERVER_PORT) || 3001;
console.log(`Server starting on port ${serverConfig.port}...`);
console.log(`Server starting on port ${port}...`);
startBackgroundServices();
serve({ fetch: app.fetch, port: serverConfig.port }, () => {
console.log(`Server running at http://localhost:${serverConfig.port}`);
serve({ fetch: app.fetch, port }, () => {
console.log(`Server running at http://localhost:${port}`);
});