From 6687a950edb019592dddddd5ee1de13dbcfe1ad6 Mon Sep 17 00:00:00 2001 From: Henrik Larsson Date: Fri, 7 Jul 2023 15:27:52 +0200 Subject: [PATCH] Update revalidate paths again --- app/api/revalidate/sanity/route.ts | 2 -- package.json | 7 ------- 2 files changed, 9 deletions(-) diff --git a/app/api/revalidate/sanity/route.ts b/app/api/revalidate/sanity/route.ts index cee1e5c2c..a9c15377c 100644 --- a/app/api/revalidate/sanity/route.ts +++ b/app/api/revalidate/sanity/route.ts @@ -5,8 +5,6 @@ import { NextRequest, NextResponse } from 'next/server'; const SANITY_WEBHOOK_SECRET = `${process.env.SANITY_WEBHOOK_SECRET}`; -export const runtime = 'edge' - export async function POST(request: NextRequest) { // Await the response from our request. const requestData = await request.json(); diff --git a/package.json b/package.json index 29a36f9d0..0d9c946fa 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,5 @@ { "private": true, - "engines": { - "node": ">=18", - "pnpm": ">=7" - }, "scripts": { "dev": "next dev", "build": "next build", @@ -73,8 +69,5 @@ "prettier-plugin-tailwindcss": "^0.2.8", "tailwindcss": "^3.3.2", "typescript": "4.9.5" - }, - "browser": { - "crypto": false } }