Skip to content

fix: 使访问量统计功能变为可选,缺失配置时静默禁用 - #42

Merged
nowscott merged 2 commits into
mainfrom
coding
Apr 3, 2026
Merged

fix: 使访问量统计功能变为可选,缺失配置时静默禁用#42
nowscott merged 2 commits into
mainfrom
coding

Conversation

@nowscott

@nowscott nowscott commented Apr 3, 2026

Copy link
Copy Markdown
Owner

当 Turso 数据库环境变量缺失或数据库操作失败时,不再抛出 500 错误,而是将功能标记为禁用并返回正常响应。前端组件会据此隐藏访问量显示,避免影响页面正常渲染。在开发环境下保留警告日志以便调试。同时更新了 README 文档以说明此可选功能。

当 Turso 数据库环境变量缺失或数据库操作失败时,不再抛出 500 错误,而是将功能标记为禁用并返回正常响应。前端组件会据此隐藏访问量显示,避免影响页面正常渲染。在开发环境下保留警告日志以便调试。同时更新了 README 文档以说明此可选功能。
@vercel

vercel Bot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
indwebindex Ready Ready Preview, Comment Apr 3, 2026 8:38am

- 将项目标题翻译为中文并添加副标题
- 重写项目背景、目的与迭代历史,使其更具故事性和吸引力
- 详细说明使用 Notion API 作为数据源的缘由和优势
- 优化“如何部署”部分的步骤描述,使其更清晰易懂
- 更新官方示例站点链接和联系信息
- 整体提升文档的叙事性和可读性
@nowscott
nowscott merged commit d430820 into main Apr 3, 2026
1 of 2 checks passed
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