Connect Supabase to Netlify

Hello,
I am trying to connect Supabase to Netlify but it does not work despite the fact :
  • I connected Netlify to the good projects
  • I set up the environment variables
  • I allowed the connexion on Supabase
The first error message in the browser console was :
Uncaught TypeError: Failed to resolve module specifier "@supabase/supabase-js". Relative references must start with either "/", "./", or "../".


So, in order to tackle that, I switched to CDN and now I have this message :
Uncaught TypeError: Cannot read properties of undefined (reading 'VITE_SUPABASE_URL')

If anyone has ever connected Supabase to Netlify, it would be wonderful if he or she could help me.
Thank you in advance 🙏
Was this page helpful?