Skip to content

Commit

Permalink
chore(example): Remove env package usage (#1457)
Browse files Browse the repository at this point in the history
Closes #1400 

We no longer need to provide the `baseUrl` just to override the timeout.
  • Loading branch information
blaine-arcjet authored Aug 30, 2024
1 parent 4e1c8e2 commit f09f3d3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 25 deletions.
2 changes: 0 additions & 2 deletions examples/nextjs-14-app-dir-rl/app/api/custom_timeout/route.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import arcjet, { validateEmail, createRemoteClient } from "@arcjet/next";
import { baseUrl } from "@arcjet/env";
import { NextResponse } from "next/server";

const client = createRemoteClient({
baseUrl: baseUrl(process.env),
timeout: 10,
});

Expand Down
40 changes: 18 additions & 22 deletions examples/nextjs-14-app-dir-rl/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion examples/nextjs-14-app-dir-rl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"lint": "next lint"
},
"dependencies": {
"@arcjet/env": "file:../../env",
"@arcjet/next": "file:../../arcjet-next",
"next": "^14.2.6",
"react": "^18",
Expand Down

0 comments on commit f09f3d3

Please sign in to comment.