Skip to content

parseProjectUrl

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/web/src/lib/url-utils.ts

Parse a project URL to extract slug and urlId

Signature

ts
function parseProjectUrl(pathname: string): { slug: string; urlId: string } | null

Parameters

NameType
pathnamestring

Returns: { slug: string; urlId: string } | null

Was this page helpful?

Download as PDF