Skip to content

Commit

Permalink
update the example readme
Browse files Browse the repository at this point in the history
  • Loading branch information
blaine-arcjet committed Dec 13, 2023
1 parent 1b5b9ec commit 092ea16
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions examples/nextjs-14-app-dir-rl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@ handler](https://nextjs.org/docs/app/building-your-application/routing/route-han

## How to use

```bash
npm install
npm run dev
```
1. From the root of the project, install the dependencies.

Then visit `http://localhost:3000/api/arcjet` and refresh the page to trigger
the rate limit.
```bash
npm ci
```

2. Enter this directory and start the dev server.

```bash
cd examples/nextjs-14-app-dir-rl
npm run dev
```

3. Visit `http://localhost:3000/api/arcjet`.
4. Refresh the page to trigger the rate limit.

0 comments on commit 092ea16

Please sign in to comment.