Files
competition-website/config/plugin.js
WorkBuddy a303cf2d53 chore: 后端首次基线提交
运行必须源码:app/(controller/model/service/middleware/lib/utils/validate/router)、config/、database/(migrations/seeders/sql)、启动脚本、app/public/templates 模板。
已忽略运行非必须:node_modules/、logs/、run/、app/public 运行时上传数据、.env*、构建/缓存产物。
2026-08-17 12:25:42 +08:00

33 lines
553 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
'use strict';
/** @type Egg.EggPlugin */
module.exports = {
// 启用 Sequelize ORM 插件(MariaDB/MySQL)
sequelize: {
enable: true,
package: 'egg-sequelize',
},
// 启用 CORS 跨域插件
cors: {
enable: true,
package: 'egg-cors',
},
// 启用参数校验插件
validate: {
enable: true,
package: 'egg-validate',
},
// 禁用开发环境热重载(Node 22 兼容性)
development: {
enable: false,
},
// 禁用文件监听(Node 22 兼容性)
watcher: {
enable: false,
},
};