Skip to content

Commit

Permalink
Use pnpm, pnpm wrangler for instructions (#37)
Browse files Browse the repository at this point in the history
* README: Use pnpm for instructions
* Move install before configuration, use pnpm wrangler
  • Loading branch information
Erisa authored Oct 18, 2023
1 parent 4ffbc83 commit 595361a
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,13 @@ If you see a bug or something missing, please open an issue or pull request!

## Setup

### Installing wrangler

```sh
npm i -g wrangler
wrangler login
```

### Configuration

Create your R2 bucket(s) if you haven't already (replace `bucket_name` and `preview_bucket_name` appropriately):
```sh
wrangler r2 bucket create bucket_name # required
wrangler r2 bucket create preview_bucket_name # optional
pnpm install
pnpm wrangler r2 bucket create bucket_name # required
pnpm wrangler r2 bucket create preview_bucket_name # optional
```
You can also do this from the [Cloudflare dashboard](https://dash.cloudflare.com/?to=/:account/r2/buckets/new).

Expand All @@ -54,8 +48,7 @@ If you want to deploy render with multiple domains for one worker, check out [mu

#### Method 1 (Local)
```sh
npm install
wrangler publish # or `npm run deploy`
pnpm wrangler publish # or `pnpm run deploy`
```

#### Method 2 (GitHub Actions)
Expand Down Expand Up @@ -84,12 +77,12 @@ You can see an awesome example with [Erisa](https://github.com/Erisa)'s [multi-r

Install deps:
```sh
npm install
pnpm install
```

To launch the development server:
```sh
npm run dev
pnpm run dev
```

## Notable Forks
Expand Down

0 comments on commit 595361a

Please sign in to comment.