fix: restore post-v1.1.14 features while preserving asset updates
Undo the full-tree rollback in 6ea1b3d and restore the pre-rollback v1.2.0 code. Preserve the new asset flow rules, abnormal inventory separation, range drilldowns and date picker; adapt the regression test to the restored routes layout.
This commit is contained in:
+6
-6
@@ -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';
|
||||
|
||||
dotenv.config();
|
||||
// 配置错误在启动期暴露,而不是等到第一次请求才 500。
|
||||
assertRuntimeConfig();
|
||||
|
||||
const app = createApp();
|
||||
const port = Number(process.env.SERVER_PORT) || 3001;
|
||||
|
||||
console.log(`Server starting on port ${port}...`);
|
||||
console.log(`Server starting on port ${serverConfig.port}...`);
|
||||
startBackgroundServices();
|
||||
serve({ fetch: app.fetch, port }, () => {
|
||||
console.log(`Server running at http://localhost:${port}`);
|
||||
serve({ fetch: app.fetch, port: serverConfig.port }, () => {
|
||||
console.log(`Server running at http://localhost:${serverConfig.port}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user