Skip to content

Comments

feat:自部署到vercel上#30

Open
coperlm wants to merge 6 commits intoEvanNotFound:mainfrom
coperlm:PR_ForSelf_deploy
Open

feat:自部署到vercel上#30
coperlm wants to merge 6 commits intoEvanNotFound:mainfrom
coperlm:PR_ForSelf_deploy

Conversation

@coperlm
Copy link

@coperlm coperlm commented Feb 17, 2026

主要工作是把原本从硬编码访问vercount.one改为提取BETTER_AUTH_URL的自己的项目的url,可以直接部署到vercel上

测试结果:(使用浏览器自带的屏蔽指定url *://*.vercount.one/*的功能,确保完全自建,不会调用官方服务)

把环境变量里的BETTER_AUTH_URL改为https://vercount.one,博客设置始终调用自建url https://vercount-l2e8.vercel.app。没有访客数量,显示调用 https://vercount-l2e8.vercel.app/js ,但是 https://events.vercount.one/api/v2/log 被屏蔽

image

把环境变量里的BETTER_AUTH_URL改为https://vercount-l2e8.vercel.app,现在是纯自部署模式。有访客数量

image

关闭屏蔽 vercount.one,也能正常获取官网的数据,不影响非自建的正常使用

image

(博客直接调用官网url+浏览器不屏蔽也能显示,这里不再赘述)

实现方式可能不是很优雅,但经实验暂未发现bug,还请多多指教

@vercel
Copy link

vercel bot commented Feb 17, 2026

@coperlm is attempting to deploy a commit to the Evanovation Team on Vercel.

A member of the Team first needs to authorize it.

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