Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

supabaseClient env values import change

Ollie Halliday7a6be7d9bac9
diff --git a/web/docs/guides/with-solidjs.mdx b/web/docs/guides/with-solidjs.mdx
index e8431bfcfd8..bd54f96c916 100644
--- a/web/docs/guides/with-solidjs.mdx
+++ b/web/docs/guides/with-solidjs.mdx
@@ -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)
```