Skip to content

Commit

Permalink
chore: optimize startup process
Browse files Browse the repository at this point in the history
  • Loading branch information
codersjj authored and ourai committed Jan 14, 2025
1 parent 2371dcd commit 95e5af9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,18 @@ For more information, see [here](https://openbuildxyz.github.io/openbuild-fronte
pnpm install
```

### Setting Environment Variables
### First-Time Setup

```bash
cp .env.example .env.local
```

then
For the initial setup, run:

```bash
pnpm dlx auth secret
pnpm run setup
```

### Run 🚀

After the initial setup, use the following command to start the application:

```bash
pnpm start
```
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"node": ">=20.0.0"
},
"scripts": {
"setup": "cross-env cp .env.example .env.local && npx pnpm dlx auth secret",
"dev": "cross-env NEXT_PUBLIC_DOMAIN_ENV=development next dev -p 3000",
"build": "next build",
"build:test": "NODE_ENV=test NEXT_PUBLIC_DOMAIN_ENV=test next build",
Expand Down

0 comments on commit 95e5af9

Please sign in to comment.