feat: 重构服务支持双模式并接入 MongoDB 数据库
- 新增 MongoDB 存储层实现英雄、预设和版本数据的持久化 - 新增 push-meta 和 migrate-to-mongo 脚本支持数据同步迁移 - 支持开发版和线上设计版双模式运行 - 新增版本闸门机制,线上设计版落后时进入只读模式 - 优化前端 API 配置适配不同部署环境 - 新增线上设计版静态资源托管和路由回退
This commit is contained in:
@@ -4,11 +4,15 @@
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "node --watch index.js"
|
||||
"dev": "node --watch index.js",
|
||||
"start": "node index.js",
|
||||
"push-meta": "node scripts/push-meta.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^18.0.5",
|
||||
"esbuild": "^0.24.0",
|
||||
"express": "^4.21.2"
|
||||
"express": "^4.21.2",
|
||||
"mongodb": "^6.12.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user