Skip to content

merge#10

Merged
icbcman merged 3 commits into
icbcman:mainfrom
tangly1024:main
May 7, 2026
Merged

merge#10
icbcman merged 3 commits into
icbcman:mainfrom
tangly1024:main

Conversation

@icbcman
Copy link
Copy Markdown
Owner

@icbcman icbcman commented May 7, 2026

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

已知问题

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

解决方案

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

改动收益

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

具体改动

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

测试确认

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

tangly1024 added 3 commits May 7, 2026 13:55
- Pin Node 20.18.0 in .nvmrc to avoid build failures when platforms lack patch releases like 20.20.0
- Document EdgeOne Pages behavior and nvm install without hardcoded version in README
- Cap article (#article-wrapper) at 64rem for Notion/dashboard pages
- At xl+, constrain .container to 72rem within #theme-starter for balanced layout
…4019)

- Style draggable theme panel from global isDarkMode so it matches toggle/html.dark regardless of Tailwind darkMode config
- Tune borders, shadows, palette gradient, text and focus ring for dark surfaces
@icbcman icbcman merged commit c12e19c into icbcman:main May 7, 2026
4 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