Skip to content

升级#11

Open
icbcman wants to merge 9 commits into
icbcman:mainfrom
notionnext-org:main
Open

升级#11
icbcman wants to merge 9 commits into
icbcman:mainfrom
notionnext-org:main

Conversation

@icbcman
Copy link
Copy Markdown
Owner

@icbcman icbcman commented May 12, 2026

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

已知问题

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

解决方案

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

改动收益

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

具体改动

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

测试确认

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

qianzhu18 and others added 9 commits May 10, 2026 05:57
Resolve add/add conflict in notion-data-format.test.js: combine PR heading/TOC
tests with main's p-limit mock and notion-utils mock for getTextContent.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add workflow and script to increment the last version segment after each
merge to main; use [skip-version] in bot commits to avoid loops.

Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: add community site roadmap

* docs: address review on community roadmap

- Clarify roadmap vs future schema/examples docs; remove resume section
- Note Member/Event alignment with type, SiteDataApi, routing
- Link from root README and docs index

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: tangly1024 <mail@tangly1024.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: tangly1024 <mail@tangly1024.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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.

3 participants