Skip to content

validateCloneUrl

validateCloneUrl(value): Field<{ name: string; url: string; }>

Defined in: src/validate.ts:306

Validate a clone URL submitted by the user. Accepts https://, http://, and scp-style git@ URLs that parseRemote can parse. Derives the target folder name from the last path segment of the slug. Returns { url: trimmedUrl, name } on success.

unknown

Field<{ name: string; url: string; }>