CodeReview/frontend/.env.example

43 lines
1.5 KiB
Plaintext
Raw 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.

# ========================================
# XCodeReviewer 前端环境变量配置示例
# ========================================
# 复制此文件为 .env 并填写你的配置
# 注意前后端分离架构下LLM 配置主要在后端 backend/.env 中设置
# ==================== 后端 API 配置 ====================
# 后端 API 地址Docker Compose 部署时使用)
VITE_API_BASE_URL=/api
# ==================== 数据库配置 ====================
# 方式1本地数据库推荐开箱即用
VITE_USE_LOCAL_DB=true
# 方式2Supabase 云端数据库(支持多设备同步)
# VITE_SUPABASE_URL=https://your-project.supabase.co
# VITE_SUPABASE_ANON_KEY=your-anon-key-here
# ==================== Git 仓库集成配置 (可选) ====================
# 用于前端直接访问公开仓库(私有仓库建议在后端配置)
# GitHub Token
# VITE_GITHUB_TOKEN=ghp_your_github_token_here
# GitLab Token
# VITE_GITLAB_TOKEN=glpat-your_gitlab_token_here
# ==================== 应用配置 ====================
VITE_APP_ID=xcodereviewer
# ==================== 代码分析配置 ====================
VITE_MAX_ANALYZE_FILES=40
VITE_LLM_CONCURRENCY=2
VITE_LLM_GAP_MS=500
VITE_OUTPUT_LANGUAGE=zh-CN # zh-CN: 中文 | en-US: 英文
# ========================================
# 重要提示
# ========================================
# 1. LLM 配置API Key、模型等请在后端 backend/.env 中设置
# 2. 前端可通过 /admin 页面进行运行时配置
# 3. 本地数据库模式下,数据存储在浏览器 IndexedDB 中