Skip to content

Instantly share code, notes, and snippets.

@jsjoeio
Created July 28, 2021 14:50
Show Gist options
  • Save jsjoeio/e16f70b757aeebb669d81c52bc905751 to your computer and use it in GitHub Desktop.
Save jsjoeio/e16f70b757aeebb669d81c52bc905751 to your computer and use it in GitHub Desktop.
Supbase helper function
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