VercelIntegration.utils.ts 231 B

123456789
  1. export function isVercelUrl(url: string): boolean {
  2. try {
  3. const u = new URL(url)
  4. return u.protocol === 'https:' && u.hostname === 'vercel.com'
  5. } catch {
  6. // If the URL is invalid, return false
  7. return false
  8. }
  9. }