Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix error on route for Next JS tutorial (#18686)

Esteban Dalel R4a4416ee9b0b
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx
index ca68d79bf05..edc8aac8b6c 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx
@@ -358,7 +358,7 @@ import { createRouteHandlerClient } from '@supabase/auth-helpers-nextjs'
import { cookies } from 'next/headers'
import { NextResponse } from 'next/server'
-export async function POST(req) {
+export async function GET(req) {
const cookieStore = cookies()
const supabase = createRouteHandlerClient({ cookies: () => cookieStore })