From 3cd48c8b258630d9dd39583fa1e20615fd0f6bd0 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Fri, 24 Jan 2025 07:40:48 +0100 Subject: [PATCH] fixup! drop async --- examples/api/app/api/hello/route.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/api/app/api/hello/route.ts b/examples/api/app/api/hello/route.ts index c42676cc..79a62065 100644 --- a/examples/api/app/api/hello/route.ts +++ b/examples/api/app/api/hello/route.ts @@ -11,9 +11,8 @@ export async function GET() { return new Response("Hello World!"); } - // Retrieve the bindings defined in wrangler.toml - const { env } = await getCloudflareContext(); - return new Response(env.hello); + // Retrieve the bindings defined in wrangler.json + return new Response(getCloudflareContext().env.hello); } export async function POST(request: Request) {