Skip to content

Commit

Permalink
docs(examples): Remove shield from rules (#613)
Browse files Browse the repository at this point in the history
docs(examples): Remove shield from rule
  • Loading branch information
davidmytton committed Apr 17, 2024
1 parent 999e1bb commit 1eb02d2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/nextjs-14-react-hook-form/app/api/submit/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { formSchema } from "@/lib/formSchema";
import arcjet, { protectSignup, shield } from "@arcjet/next";
import arcjet, { protectSignup } from "@arcjet/next";
import { NextResponse } from "next/server";

const aj = arcjet({
Expand All @@ -8,10 +8,6 @@ const aj = arcjet({
// See: https://nextjs.org/docs/app/building-your-application/configuring/environment-variables
key: process.env.ARCJET_KEY,
rules: [
// Protect against common attacks with Arcjet Shield
shield({
mode: "LIVE", // will block requests. Use "DRY_RUN" to log only
}),
// Arcjet's protectSignup rule is a combination of email validation, bot
// protection and rate limiting. Each of these can also be used separately
// on other routes e.g. rate limiting on a login route. See
Expand Down

0 comments on commit 1eb02d2

Please sign in to comment.