From 7a6be7d9bac992c42fa271f9b731aedfdbbdae5d Mon Sep 17 00:00:00 2001 From: Ollie Halliday <22655069+Hallidayo@users.noreply.github.com> Date: Thu, 19 May 2022 20:50:54 +0100 Subject: [PATCH] supabaseClient env values import change --- web/docs/guides/with-solidjs.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) ```