Skip to content

Commit 95e5af9

Browse files
codersjjourai
authored andcommitted
chore: optimize startup process
1 parent 2371dcd commit 95e5af9

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,18 @@ For more information, see [here](https://openbuildxyz.github.io/openbuild-fronte
2727
pnpm install
2828
```
2929

30-
### Setting Environment Variables
30+
### First-Time Setup
3131

32-
```bash
33-
cp .env.example .env.local
34-
```
35-
36-
then
32+
For the initial setup, run:
3733

3834
```bash
39-
pnpm dlx auth secret
35+
pnpm run setup
4036
```
4137

4238
### Run 🚀
4339

40+
After the initial setup, use the following command to start the application:
41+
4442
```bash
4543
pnpm start
4644
```

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"node": ">=20.0.0"
66
},
77
"scripts": {
8+
"setup": "cross-env cp .env.example .env.local && npx pnpm dlx auth secret",
89
"dev": "cross-env NEXT_PUBLIC_DOMAIN_ENV=development next dev -p 3000",
910
"build": "next build",
1011
"build:test": "NODE_ENV=test NEXT_PUBLIC_DOMAIN_ENV=test next build",

0 commit comments

Comments
 (0)