Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

use typescript type defintion #22

Open
Udit-takkar opened this issue Jun 16, 2024 · 0 comments
Open

use typescript type defintion #22

Udit-takkar opened this issue Jun 16, 2024 · 0 comments

Comments

@Udit-takkar
Copy link
Contributor

we can generate types and use it

const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_ANON_KEY)
Ref: https://supabase.com/docs/guides/api/rest/generating-types#using-typescript-type-definitions

instead of

const supabaseBrowserClient = createClient(env.NEXT_PUBLIC_SUPABASE_URL, env.NEXT_PUBLIC_SUPABASE_ANON_KEY);
in https://github.com/calcom/platform-starter-kit/blob/main/src/app/dashboard/settings/_components/supabase-react-dropzone.tsx#L10

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant