Skip to content

Commit 2cbc9ef

Browse files
committed
fix: restore automatic env sync on install
1 parent 7416884 commit 2cbc9ef

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,10 @@
2222
## 开始
2323

2424
```bash
25-
pnpm run sync-env
2625
pnpm install
2726
pnpm dev
2827
```
2928

30-
`pnpm run sync-env` 会在你显式执行时,从 `Open-Source-Bazaar/key-vault` 同步当前项目所需的私有环境文件。出于安全考虑,仓库不会在 `pnpm install` 阶段自动下载 `.env.local`
31-
3229
可访问 http://localhost:3000.
3330

3431
[1]: https://github.com/idea2app/Lark-Next-Bootstrap-ts

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"prepare": "husky",
88
"sync-env": "pnpx git-utility download https://github.com/Open-Source-Bazaar/key-vault main Open-Source-Bazaar.github.io",
9-
"postinstall": "next typegen",
9+
"postinstall": "(pnpm run sync-env || true) && next typegen",
1010
"dev": "next dev --webpack",
1111
"build": "next build --webpack",
1212
"start": "next start",

0 commit comments

Comments
 (0)