diff --git a/.env.example b/.env.example index 81ae084..fae066d 100644 --- a/.env.example +++ b/.env.example @@ -1,23 +1,23 @@ -JWT_SECRET=your_jwt_secret_here +# JWT Secret +JWT_SECRET=your_jwt_secret_at_least_32_bytes + +# Database SERVER_HOST=your_database_host SERVER_PORT=3306 SERVER_USER=your_database_user PASSWORD=your_database_password -DB_NAME=auth_db +DB_NAME=your_database_name # GitHub OAuth GITHUB_CLIENT_ID=your_github_client_id GITHUB_CLIENT_SECRET=your_github_client_secret GITHUB_CALLBACK_URL=https://your-domain.com/callback -# 飞书 OAuth +# Feishu OAuth FEISHU_APP_ID=your_feishu_app_id FEISHU_APP_SECRET=your_feishu_app_secret -# AI API Keys +# API Keys SILICONFLOW_API_KEY=your_siliconflow_api_key DEEPSEEK_API_KEY=your_deepseek_api_key GROK_API_KEY=your_grok_api_key - -# Grok API Base URL (optional) -GROK_BASE_URL=https://api.x.ai diff --git a/.gitignore b/.gitignore index 2edb786..b910ef8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,40 +1,26 @@ -# compiled output -/dist -/node_modules - -# Environment variables +# 环境变量 .env .env.local .env.*.local -# Logs -logs +# 依赖 +node_modules/ +.pnpm-store/ + +# 构建产物 +dist/ +build/ + +# 日志 *.log npm-debug.log* -pnpm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -# OS +# 编辑器 +.vscode/ +.idea/ + +# 系统文件 .DS_Store -# Tests -/coverage -/.nyc_output - -# IDEs and editors -/.idea -.project -.classpath -.c9/ -*.launch -.settings/ -*.sublime-workspace - -# IDE - VSCode -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json \ No newline at end of file +# Vercel +.vercel/ diff --git a/vercel.json b/vercel.json index b9607d3..5e29aa3 100644 --- a/vercel.json +++ b/vercel.json @@ -11,5 +11,8 @@ "src": "/(.*)", "dest": "dist/main.js" } - ] + ], + "env": { + "NODE_ENV": "production" + } }