diff --git a/apps/studio/components/interfaces/Integrations/Vercel/VercelIntegration.utils.ts b/apps/studio/components/interfaces/Integrations/Vercel/VercelIntegration.utils.ts index cf4a7f0c93b..3c55db6f9e6 100644 --- a/apps/studio/components/interfaces/Integrations/Vercel/VercelIntegration.utils.ts +++ b/apps/studio/components/interfaces/Integrations/Vercel/VercelIntegration.utils.ts @@ -1,6 +1,7 @@ export function isVercelUrl(url: string): boolean { try { - return new URL(url).hostname === 'vercel.com' + const u = new URL(url) + return u.protocol === 'https:' && u.hostname === 'vercel.com' } catch { // If the URL is invalid, return false return false