Skip to content

Commit

Permalink
wip : adding supabase
Browse files Browse the repository at this point in the history
  • Loading branch information
fredygerman committed Dec 5, 2023
1 parent 242714f commit b7d64dc
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 2 deletions.
18 changes: 18 additions & 0 deletions actions/supabase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { createServerClient, type CookieOptions } from '@supabase/ssr';
import { cookies } from 'next/headers';

export default async function Page() {
const cookieStore = cookies();

const supabase = createServerClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
{
cookies: {
get(name: string) {
return cookieStore.get(name)?.value;
},
},
}
);
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-slot": "^1.0.2",
"@supabase/ssr": "^0.0.10",
"@tanstack/react-query": "^5.4.3",
"@tanstack/react-query-devtools": "^5.8.1",
"@tanstack/react-query-next-experimental": "^5.8.1",
Expand Down
119 changes: 117 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b7d64dc

Please sign in to comment.