Skip to content

集成Vercel Analytics #101

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

Merged
merged 4 commits into from
May 11, 2025
Merged

集成Vercel Analytics #101

merged 4 commits into from
May 11, 2025

Conversation

linshenkx
Copy link
Owner

No description provided.

linshenkx added 4 commits May 11, 2025 22:31
- 在 main.js 中添加 Vercel Analytics 动态导入和初始化代码
- 修改 vercel.json,在安装依赖时添加 @vercel/analytics 包
-根据环境变量 VERCEL_DEPLOYMENT 决定是否加载 Analytics- 改为通过 script 标签直接加载 Analytics 脚本
- 延迟加载以确保 DOM 完全加载
- 更新版本号至 1.0.4
…RCEL_DEPLOYMENT

- 在Vite 项目中,建议使用VITE_ 前缀来定义环境变量
- 更新相关代码以使用新的环境变量名称
Copy link

vercel bot commented May 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
prompt-optimizer ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2025 3:27pm
prompt-optimizer-extension ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2025 3:27pm

@linshenkx linshenkx merged commit 4722603 into master May 11, 2025
4 checks passed
@linshenkx linshenkx deleted the dev branch May 26, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant