diff --git a/src/content/docs/developer-spotlight/tutorials/fullstack-authentication-with-next-js-and-cloudflare-d1.mdx b/src/content/docs/developer-spotlight/tutorials/fullstack-authentication-with-next-js-and-cloudflare-d1.mdx index d0c2fd603562616..756f7993098c8e8 100644 --- a/src/content/docs/developer-spotlight/tutorials/fullstack-authentication-with-next-js-and-cloudflare-d1.mdx +++ b/src/content/docs/developer-spotlight/tutorials/fullstack-authentication-with-next-js-and-cloudflare-d1.mdx @@ -210,11 +210,11 @@ const authResult = async (): Promise => { return NextAuth({ providers: [ Resend({ - apiKey: (await getCloudflareContext()).env.AUTH_RESEND_KEY, - from: (await getCloudflareContext()).env.AUTH_EMAIL_FROM, + apiKey: (await getCloudflareContext({ async: true })).env.AUTH_RESEND_KEY, + from: (await getCloudflareContext({ async: true })).env.AUTH_EMAIL_FROM, }), ], - adapter: D1Adapter((await getCloudflareContext()).env.DB), + adapter: D1Adapter((await getCloudflareContext({ async: true })).env.DB), }); };