Vercel deploy supabaseUrl is required

Hi, i'm trying to deploy my project in Vercel but i'm getting this error. When i run yarn build it shows no problem. I have an .env.local file with the supabaseUrl and anonKey. This is my supabaseClient.js

import { createClient } from "@supabase/supabase-js";

const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;
const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;

export const supabase = createClient(supabaseUrl, supabaseAnonKey);
unknown.png
Was this page helpful?