Skip to content

Commit

Permalink
chore(examples): Various cleanup (#2066)
Browse files Browse the repository at this point in the history
This cleans up various examples to solve some issues I encountered while trying them out.
  • Loading branch information
blaine-arcjet authored Oct 23, 2024
1 parent a6bdb2b commit c626228
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
Binary file modified examples/bun-hono-rate-limit/bun.lockb
Binary file not shown.
Binary file modified examples/bun-rate-limit/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/express-newman/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ app.get("/api/bots", async (req, res) => {
const decision = await aj
// Only inline to self-contain the sample code.
// Static rules should be defined outside the handler for performance.
.withRule(detectBot({ mode: "LIVE" }))
.withRule(detectBot({ mode: "LIVE", allow: [] }))
.protect(req);

if (decision.isDenied()) {
Expand Down
2 changes: 1 addition & 1 deletion examples/nestjs-fastify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Adapater](https://docs.nestjs.com/techniques/performance).
4. Start the server.

```bash
npm start
npm run start:dev
```

5. Visit `http://localhost:3000/` in a browser.
Expand Down
2 changes: 1 addition & 1 deletion examples/nestjs-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ GraphQL applications using the `@arcjet/nest` adapter.
4. Start the server.

```bash
npm start
npm run start:dev
```

5. Visit `http://localhost:3000/graphql` in a browser and submit a GraphQL
Expand Down
2 changes: 1 addition & 1 deletion examples/nestjs-launchdarkly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ applications using the `@arcjet/nest` adapter with rule configuration loaded via
6. Start the server.

```bash
npm start
npm run start:dev
```

7. Visit `http://localhost:3000/`.
Expand Down
2 changes: 1 addition & 1 deletion examples/nestjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ applications using the `@arcjet/nest` adapter.
4. Start the server.

```bash
npm start
npm run start:dev
```

5. Visit `http://localhost:3000/` in a browser.
Expand Down

0 comments on commit c626228

Please sign in to comment.