V0 "Open in New Tab" breaks Supabse

I’ve built out a great app that is tightly integrated with data from Supabase that works well in v0 by Vercel. In the preview pane, there is a “Open in New Tab (This link is insecure and can expose your code and data” icon. When I click on that, I get:

Runtime Error ## supabaseUrl is required.

I’ve checked my Environment Variables and I have 4 different versions of Supabase URL, all are the same value. Those include:

SUPABASE_SUPABASE_URL
supabaseUrl
SUPABASE_NEXT_PUBLIC_SUPABASE_URL
SUPABASE_URL

I was expecting that this would open the preview in a new tab where I could show/share without the chat and preview border/context.

How can I fix this issue?

Hi, Joe! Welcome to the Vercel Community :waving_hand:

Thanks for the detailed post. Would you be open to jumping on a call about this so we can debug live? We’re struggling to replicate.

The best way to create a shareable preview link is to go Publish → Create a preview deployment. When it has finished deploying you can share that link with whoever you like

The “open in a new tab” feature is a live version of your chat preview, which will update any time you send a new message. Unfortunately, for security reasons we don’t pass your environment variables through to this as it could expose them if you shared that link around, so it’s currently only useful for projects that do not contain integrations or environment variables

1 Like