1. 修正所有文件的缩进为4空格,将单引号统一改为双引号 2. 新增CORS_ORIGIN环境变量配置并从env读取CORS允许源 3. 新增prettier配置文件统一代码格式 4. 为main.ts添加启动日志输出
19 lines
471 B
Plaintext
19 lines
471 B
Plaintext
PORT=3000
|
|
JWT_SECRET=change-me
|
|
ADMIN_JWT_SECRET=change-me-admin
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_PASSWORD=admin123
|
|
|
|
# MySQL settings for the production TypeORM layer.
|
|
# The current scaffold defines entities and API boundaries; repository persistence can be enabled when the database is ready.
|
|
DB_HOST=127.0.0.1
|
|
DB_PORT=3306
|
|
DB_USERNAME=root
|
|
DB_PASSWORD=
|
|
DB_DATABASE=cth_tk_backend
|
|
|
|
# CORS settings
|
|
CORS_ORIGIN=http://localhost:5173,http://127.0.0.1:5173
|
|
|
|
DB_SYNCHRONIZE = true
|