Why vercel?
1 | deployment more fast than gh-pages |
Problem I : 报错-指令错误
1 | vercel的原理是linux虚拟机 |
1 | # 确保 node_modules 被忽略 |
Problem II : 部署后全空白
1 | vercel终端打印: No layout: xxx.xxx |
1 | # 删掉cactus目录下的.git文件后返回根目录 |
Problem III : Branch的选择错误导致没有样式
1 | vercel默认选择defalut分支,故需要在仓库内修改 |
Problem IV : 同步实现vercel和gh-pages部署
1 | # 创建 Vercel 专用配置文件 |
Problem V : .gitignore怎么书写
1 | node_modules/ |
build配置
1 | { |
Why npx?
1 | Vercel、GitHub Actions 等环境一般没有全局 Hexo |