befly-tpl 3.4.15 → 3.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.development +6 -6
- package/package.json +3 -3
- package/pm2.config.cjs +3 -4
package/.env.development
CHANGED
|
@@ -28,12 +28,12 @@ LOG_MAX_SIZE=52428800 # 50MB
|
|
|
28
28
|
# 时区
|
|
29
29
|
TZ="Asia/Shanghai"
|
|
30
30
|
# 跨域配置
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
CORS_ALLOWED_ORIGIN=""
|
|
32
|
+
CORS_ALLOWED_METHODS="GET, POST, PUT, DELETE, OPTIONS"
|
|
33
|
+
CORS_ALLOWED_HEADERS="Content-Type, Authorization, authorization, token"
|
|
34
|
+
CORS_EXPOSE_HEADERS="Content-Range, X-Content-Range, Authorization, authorization, token"
|
|
35
|
+
CORS_MAX_AGE=86400 # 1天
|
|
36
|
+
CORS_ALLOW_CREDENTIALS="true"
|
|
37
37
|
# 数据库配置(DB_* 通用参数)
|
|
38
38
|
DB_ENABLE=1
|
|
39
39
|
DB_TYPE="mysql" # 支持 sqlite | mysql | postgresql
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly-tpl",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.17",
|
|
4
4
|
"description": "Befly 3.0 TypeScript Template",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
],
|
|
32
32
|
"type": "module",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"befly": "^3.4.
|
|
34
|
+
"befly": "^3.4.16"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
37
|
"bun": ">=1.3.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "e1533f0a123ef756790fad4fc34dd9690a30f72e"
|
|
40
40
|
}
|
package/pm2.config.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* PM2 进程管理配置文件(CommonJS 格式)
|
|
3
|
-
* 使用 Bun
|
|
3
|
+
* 使用 Bun 运行 TypeScript 文件
|
|
4
4
|
*
|
|
5
5
|
* 使用方法:
|
|
6
6
|
* 1. 启动:pm2 start pm2.config.cjs
|
|
@@ -22,9 +22,8 @@ module.exports = {
|
|
|
22
22
|
apps: [
|
|
23
23
|
{
|
|
24
24
|
name: 'befly',
|
|
25
|
-
script: '
|
|
26
|
-
|
|
27
|
-
interpreter_args: '--env-file=.env.production',
|
|
25
|
+
script: 'bun',
|
|
26
|
+
args: 'run --env-file=.env.production main.ts',
|
|
28
27
|
|
|
29
28
|
// 集群模式配置
|
|
30
29
|
instances: 4, // 实例数量,可设置为 'max' 使用所有 CPU
|