Blame view

泰额版/Food Labeling Management Platform/src/lib/supabaseClient.ts 437 Bytes
884054fb   “wangming”   项目初始化
1
2
3
4
5
6
7
8
9
10
  import { createClient } from '@supabase/supabase-js';
  
  // These environment variables will be available after you connect to Supabase
  const supabaseUrl = import.meta.env.VITE_SUPABASE_URL;
  const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY;
  
  // Create a single supabase client for interacting with your database
  export const supabase = supabaseUrl && supabaseAnonKey 
    ? createClient(supabaseUrl, supabaseAnonKey)
    : null;