From 9352e2782ea36860fab328cd365ddc663c5df1fe Mon Sep 17 00:00:00 2001 From: Jake Champion Date: Wed, 22 Oct 2025 11:19:29 +0100 Subject: [PATCH] Remove request and context parameter from edge function --- examples/edge-functions/netlify/edge-functions/json.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/edge-functions/netlify/edge-functions/json.ts b/examples/edge-functions/netlify/edge-functions/json.ts index 6a9a3ef..b7f87c0 100644 --- a/examples/edge-functions/netlify/edge-functions/json.ts +++ b/examples/edge-functions/netlify/edge-functions/json.ts @@ -1,9 +1,9 @@ -import type { Context, Config } from "@netlify/edge-functions"; +import type { Config } from "@netlify/edge-functions"; -export default async (request: Request, context: Context) => { +export default async () => { return Response.json({ hello: "world" }); }; export const config: Config = { path: "/json", -}; \ No newline at end of file +};