Skip to content

Commit

Permalink
fixup! drop async
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Jan 24, 2025
1 parent 297e775 commit 3cd48c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/api/app/api/hello/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3cd48c8

Please sign in to comment.