Skip to content

Conversation

dasxj
Copy link

@dasxj dasxj commented Jul 8, 2025

尽量按此模板PR内容,或粘贴相关的ISSUE链接。

已知问题

  1. (示例)版本号管理不规范
    • 版本号直接写在环境变量中,容易出错
    • 多处维护版本号,可能不一致

解决方案

  1. (示例)将版本号管理从 .env.local 迁移到 package.json
    • 统一从 package.json 读取版本号
    • 使用 IIFE 优雅处理版本号获取逻辑
    • 保持向后兼容,支持环境变量覆盖

改动收益

  1. (示例)更规范的版本管理
    • 统一从 package.json 读取
    • 保持与 npm 生态一致
    • 减少人为错误

具体改动

  1. (示例)blog.config.js
    • 移除原有的静态版本号配置
    • 在文件末尾添加动态版本号获取逻辑
    • 保持向后兼容,优先使用环境变量
    • 添加错误处理和默认值

测试确认

  • 本地开发环境测试通过
  • 生产环境构建测试通过
  • 版本号正确显示
  • 环境变量配置正常工作

qixing-jk and others added 30 commits January 2, 2025 18:31
4.8.1版本号
…text-css

优化spoiler-text.css,平滑过渡符合现代审美
feat(使用全局变量的 notionAPI): 避免多次创建NotionAPI,有效利用内置的concurrency并发请求限制
yakiisama and others added 29 commits June 17, 2025 11:27
- Add conditional rendering for NotByAI component in all themes
- Default all new config options to false

Closes tangly1024#3351
…onent

- Add ArticleExpirationNotice component to the page layout in Heo theme

resolve tangly1024#2738
- Added ARTICLE_EXPIRATION_DAYS to configure expiration threshold
- Added ARTICLE_EXPIRATION_MESSAGE to set custom expiration message
- Added ARTICLE_EXPIRATION_ENABLED to control whether enable this feature
…ent-error-exposure

feat(aisummary): Return null when AI summary retrieval fails to preve…
…overflow-selection

fix(algoliasearch样式溢出问题):
…ick-issue

fix(proxio): enable image click navigation in list view
feat(ArticleExpirationNotice): implement ArticleExpirationNotice comp…
feat(ArticleCopyright): initially implement the "not by AI" function
Copy link

vercel bot commented Jul 8, 2025

@dasxj is attempting to deploy a commit to the tangly1024's projects 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.