Created
July 28, 2021 14:50
-
-
Save jsjoeio/e16f70b757aeebb669d81c52bc905751 to your computer and use it in GitHub Desktop.
Supbase helper function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createClient } from "@supabase/supabase-js" | |
export const supabaseClient = createClient( | |
process.env.NEXT_PUBLIC_SUPABASE_URL || "", | |
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY || "" | |
) | |
export const supabaseServer = createClient( | |
process.env.NEXT_PUBLIC_SUPABASE_URL || "", | |
process.env.SUPABASE_SERVER_KEY || "" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment