supabaseClient env values import change

This commit is contained in:
Ollie Halliday committed 2022-05-19 20:50:54 +01:00
1 parent c3fa66de18
commit 7a6be7d9ba
1 file changed
+2 -2
+2 -2
View File
@@ -191,8 +191,8 @@ on the browser, and that's completely fine since we have [Row Level Security](/d
```js title="src/supabaseClient.jsx"
import { createClient } from '@supabase/supabase-js'
const supabaseUrl = process.env.VITE_SUPABASE_URL
const supabaseAnonKey = process.env.VITE_SUPABASE_ANON_KEY
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL
const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY
export const supabase = createClient(supabaseUrl, supabaseAnonKey)
```