From 1eb02d2cb6a7cf01707dae2ca5a8acd3695143b2 Mon Sep 17 00:00:00 2001 From: David Mytton Date: Wed, 17 Apr 2024 06:29:05 -0400 Subject: [PATCH] docs(examples): Remove shield from rules (#613) docs(examples): Remove shield from rule --- examples/nextjs-14-react-hook-form/app/api/submit/route.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/nextjs-14-react-hook-form/app/api/submit/route.ts b/examples/nextjs-14-react-hook-form/app/api/submit/route.ts index 7325fa310..93cadf007 100644 --- a/examples/nextjs-14-react-hook-form/app/api/submit/route.ts +++ b/examples/nextjs-14-react-hook-form/app/api/submit/route.ts @@ -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({ @@ -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