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

use typescript type defintion #22

Description

@Udit-takkar

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions