fix: (Setting up Server-Side Auth for Next.js) update examples (#31139)

chore: update examples
This commit is contained in:
Hyungji authored and Joshen Lim committed 2024-12-18 12:32:46 +08:00
1 parent 429c3bb168
commit 52254410cd
1 file changed
+3 -1
@@ -122,7 +122,7 @@ export function createClient() {
```
```ts utils/supabase/server.ts
import { createServerClient, type CookieOptions } from '@supabase/ssr'
import { createServerClient } from '@supabase/ssr'
import { cookies } from 'next/headers'
export async function createClient() {
@@ -380,6 +380,8 @@ export async function signup(formData: FormData) {
```
```ts app/error/page.tsx
'use client'
export default function ErrorPage() {
return <p>Sorry, something went wrong</p>
}