Skip to content

Commit 70060b5

Browse files
committed
[FIX] 防止 vercel 部署重复初始化 git 环境
1 parent d87b724 commit 70060b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"dev": "next dev --turbopack",
7-
"prebuild": "rm -rf public/SelfSomething && git init && git config --global init.defaultBranch main && git submodule add https://github.com/Fadegentle/SelfSomething.git public/SelfSomething",
7+
"prebuild": "rm -rf public/SelfSomething && rm -rf .git && git init && git config --global init.defaultBranch main && git submodule add https://github.com/Fadegentle/SelfSomething.git public/SelfSomething || git clone https://github.com/Fadegentle/SelfSomething.git public/SelfSomething",
88
"build": "next build",
99
"start": "next start",
1010
"lint": "next lint"

0 commit comments

Comments
 (0)