mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 11:25:06 +03:00
docs: change supabase client and server from tsx to ts (#31088)
This commit is contained in:
1 parent
86f368f187
commit
8672209dff
1 file changed
+2
-4
@@ -150,9 +150,7 @@ The following code samples are for App Router. For help with Pages Router, see t
|
||||
>
|
||||
<TabPanel id="client" label="Client-side">
|
||||
|
||||
```ts utils/supabase/client.tsx
|
||||
'use client'
|
||||
|
||||
```ts utils/supabase/client.ts
|
||||
import { createBrowserClient } from '@supabase/ssr'
|
||||
|
||||
export function createClient() {
|
||||
@@ -167,7 +165,7 @@ export function createClient() {
|
||||
|
||||
<TabPanel id="server" label="Server-side">
|
||||
|
||||
```ts utils/supabase/server.tsx
|
||||
```ts utils/supabase/server.ts
|
||||
import { createServerClient } from '@supabase/ssr'
|
||||
import { cookies } from 'next/headers'
|
||||
|
||||
|
||||
Reference in new issue
Block a user