1. 修正所有文件的缩进为4空格,将单引号统一改为双引号 2. 新增CORS_ORIGIN环境变量配置并从env读取CORS允许源 3. 新增prettier配置文件统一代码格式 4. 为main.ts添加启动日志输出
19 lines
507 B
Bash
19 lines
507 B
Bash
PORT=3030
|
|
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=sh-cdb-kksiutuw.sql.tencentcdb.com
|
|
DB_PORT=22246
|
|
DB_USERNAME=root
|
|
DB_PASSWORD=zhxiao1124..
|
|
DB_DATABASE=onion_tiktok
|
|
|
|
# CORS settings
|
|
CORS_ORIGIN=http://localhost:5173,http://127.0.0.1:5173
|
|
|
|
DB_SYNCHRONIZE = true
|