File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11SUPABASE_ANON_KEY = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
2- SUPABASE_URL = http://localhost:54321
3- SUPABASE_SERVICE_KEY = xxx
2+ SUPABASE_API_URL = http://localhost:54321
3+ SUPABASE_SERVICE_ROLE_KEY = xxx
44
55STRIPE_SECRET_KEY = sk_test_xxx
66STRIPE_WEBHOOK_SECRET = xxx
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ Want to know where Deno SaaSKit is headed? Check out
4242
43431 . Clone the repo:
4444
45- ```
45+ ``` bash
4646git clone https://github.com/denoland/saaskit.git
4747cd saaskit
4848```
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import AuthFragmentCatcher from "@/islands/AuthFragmentCatcher.tsx";
44export default function OAuthSuccessPage ( ) {
55 return (
66 < AuthFragmentCatcher
7- supabaseUrl = { Deno . env . get ( "SUPABASE_URL " ) ! }
7+ supabaseUrl = { Deno . env . get ( "SUPABASE_API_URL " ) ! }
88 supabaseKey = { Deno . env . get ( "SUPABASE_ANON_KEY" ) ! }
99 />
1010 ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export function createSupabaseClient(
1010 responseHeaders ?: Headers ,
1111) {
1212 return createServerSupabaseClient < Database > ( {
13- supabaseUrl : Deno . env . get ( "SUPABASE_URL " ) ! ,
13+ supabaseUrl : Deno . env . get ( "SUPABASE_API_URL " ) ! ,
1414 supabaseKey : Deno . env . get ( "SUPABASE_ANON_KEY" ) ! ,
1515 getRequestHeader : ( key ) => requestHeaders . get ( key ) ?? undefined ,
1616 getCookie : ( name ) => {
@@ -33,8 +33,8 @@ export function createSupabaseClient(
3333
3434// Required to bypass Row Level Security (RLS)
3535export const supabaseAdminClient = createClient < Database > (
36- Deno . env . get ( "SUPABASE_URL " ) ! ,
37- Deno . env . get ( "SUPABASE_SERVICE_KEY " ) ! ,
36+ Deno . env . get ( "SUPABASE_API_URL " ) ! ,
37+ Deno . env . get ( "SUPABASE_SERVICE_ROLE_KEY " ) ! ,
3838) ;
3939
4040async function getCustomer (
You can’t perform that action at this time.
0 commit comments