[BUG] 目录所有文章-最近更新,本地与远程打包不同,数据不对 #91
-
Describe the bug 描述你遇到的错误本地打包跟 github action/vercel 上打包的不一样。 个人博客代码仓库:https://github.com/real-jacket/hugo-blog Expected behavior 期待的行为希望本地与远程保持一致 Screenshots 屏幕截图No response Build Environment 构建环境本地机器:Macos 14寸 Monterey 12.3 Preview Environment 预览环境No response Additional Information 补充信息No response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 29 replies
-
原因
出现这个问题的原因是因为vercel为了安全起见默认禁止了部署根目录的 解决办法手动clone项目代替vercel的自动clone,从而使得 几个可用的vercel配置可参考 |
Beta Was this translation helpful? Give feedback.
-
经过再次研究,问题已经解决。先说结论: - name: Git Configuration
run: |
git config --global core.quotePath false
git config --global core.autocrlf false
git config --global core.safecrlf true
git config --global core.ignorecase false 具体可以参考相关文章: |
Beta Was this translation helpful? Give feedback.
-
@real-jacket @hiifong |
Beta Was this translation helpful? Give feedback.
经过再次研究,问题已经解决。先说结论:
在 gihutb action 上需新增以下配置,具体位置是在构建前:
具体可以参考相关文章: