Conversation
- 将 actions/checkout 和 actions/setup-node 升级到 v4 版本 - 将 Node.js 版本从 18 更新至 22 - 添加 FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 环境变量以提升兼容性 - 将创建发布步骤切换至 softprops/action-gh-release@v2 并启用自动生成发行说明
- 将 MainPage 组件从 pages/ 移动到 components/ 目录,以符合 Next.js 最佳实践 - 升级 Next.js 至 v16 及相关依赖版本,包括 React 19 和 Tailwind CSS v4 - 更新 postcss 配置以使用 @tailwindcss/postcss 插件 - 简化 vercel.json 配置,使用预设的 Next.js 框架检测 - 改进 notion.js 的错误处理,增加空值检查和异常捕获 - 更新 next.config.js 以支持 Turbopack 并优化配置结构
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- 修复主题切换时的闪动问题,通过添加 `mounted` 状态确保只在客户端渲染主题按钮 - 更新 Notion 客户端依赖至 v2 并重构初始化逻辑,避免服务端渲染问题 - 添加 MongoDB 连接共享模块,优化 API 连接性能并修复访问量统计错误处理 - 在 Next.js 配置中禁用 Turbopack 并启用 Webpack,添加 `/home` 到根路径的重定向 - 修复页脚访问量统计的 JSON 响应验证和默认值设置
删除旧的 tailwind.config.js 文件,因为 Tailwind CSS v4 不再需要它。 将字体配置从 JS 迁移到 CSS 中的 @theme 指令。 在 _document.js 中添加服务端字体 cookie 读取,以避免页面闪烁。 在 FontMenu.js 中添加重复添加字体类的检查。 在 globals.css 中定义字体 CSS 变量和对应的全局样式类。
- 在字体选择菜单中新增芫荽 (Iansui) 和汇文明朝体 (Huiwen-Mincho) 选项 - 将外部字体样式表从 CSS @import 迁移至 HTML <link> 标签以优化加载 - 为字体菜单项添加预览样式类,移除内联样式以提升可维护性
将目哉像素字体样式链接从 chinese-fonts-cdn.deno.dev 迁移至 f.0211120.xyz,以确保字体资源稳定加载。
移除 yarn.lock 文件以统一使用 npm 作为包管理器。 在 package.json 中明确指定项目所需的 Node.js 版本为 >=20.0.0,确保运行环境兼容性。
将 engines.node 字段从 ">=20.0.0" 更新为 "22.x",以明确指定项目支持的 Node.js 主版本。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.