Skip to content

.#247

Merged
88lin merged 2 commits into88lin:mainfrom
tangly1024:main
Feb 18, 2026
Merged

.#247
88lin merged 2 commits into88lin:mainfrom
tangly1024:main

Conversation

@88lin
Copy link
Owner

@88lin 88lin commented Feb 18, 2026

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

已知问题

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

解决方案

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

改动收益

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

具体改动

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

测试确认

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

PR-Codex overview

This PR focuses on updating the version in package.json and refining the resolvePostProps function in lib/db/SiteDataApi.js to enhance slug matching logic and improve code clarity.

Detailed summary

  • Updated version in package.json from 4.9.3 to 4.9.3.1.
  • Added comments to clarify the purpose of sections in resolvePostProps.
  • Simplified slug matching logic for better accuracy and readability.
  • Enhanced error handling for UUID matching.
  • Improved block handling when fetching Notion data.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Feb 18, 2026

@tangly1024 is attempting to deploy a commit to the 88lin's projects Team on Vercel.

A member of the Team first needs to authorize it.

@88lin 88lin merged commit e50bd4f into 88lin:main Feb 18, 2026
2 of 3 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.

2 participants