Skip to content

Commit c626228

Browse files
chore(examples): Various cleanup (#2066)
This cleans up various examples to solve some issues I encountered while trying them out.
1 parent a6bdb2b commit c626228

File tree

7 files changed

+5
-5
lines changed

7 files changed

+5
-5
lines changed
6.72 KB
Binary file not shown.

examples/bun-rate-limit/bun.lockb

6.78 KB
Binary file not shown.

examples/express-newman/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ app.get("/api/bots", async (req, res) => {
4040
const decision = await aj
4141
// Only inline to self-contain the sample code.
4242
// Static rules should be defined outside the handler for performance.
43-
.withRule(detectBot({ mode: "LIVE" }))
43+
.withRule(detectBot({ mode: "LIVE", allow: [] }))
4444
.protect(req);
4545

4646
if (decision.isDenied()) {

examples/nestjs-fastify/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Adapater](https://docs.nestjs.com/techniques/performance).
3131
4. Start the server.
3232

3333
```bash
34-
npm start
34+
npm run start:dev
3535
```
3636

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

examples/nestjs-graphql/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ GraphQL applications using the `@arcjet/nest` adapter.
3030
4. Start the server.
3131

3232
```bash
33-
npm start
33+
npm run start:dev
3434
```
3535

3636
5. Visit `http://localhost:3000/graphql` in a browser and submit a GraphQL

examples/nestjs-launchdarkly/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ applications using the `@arcjet/nest` adapter with rule configuration loaded via
8888
6. Start the server.
8989

9090
```bash
91-
npm start
91+
npm run start:dev
9292
```
9393

9494
7. Visit `http://localhost:3000/`.

examples/nestjs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ applications using the `@arcjet/nest` adapter.
3030
4. Start the server.
3131

3232
```bash
33-
npm start
33+
npm run start:dev
3434
```
3535

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

0 commit comments

Comments
 (0)