-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: analytics #121
chore: analytics #121
Conversation
Walkthrough该PR更新了多个项目中的依赖和配置。在后端和前端的 Changes
Sequence Diagram(s)sequenceDiagram
participant Config as VitePress配置
participant Env as loadEnv函数
participant Transform as transformHead函数
participant Script as Umami脚本标签
Config->>Env: 根据 NODE_ENV 加载环境变量
Env-->>Config: 返回环境变量
Config->>Transform: 执行 transformHead 判断环境
alt 生产环境且 Umami 变量存在
Transform->>Script: 构造并注入 Umami 脚本标签
else 非生产环境或变量缺失
Transform-->>Transform: 无操作
end
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (5)
🔇 Additional comments (10)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Chores