Skip to content

buildProjectUrl

reference
1 min readUpdated

Kind: Function

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

Build a project URL from components

In production with NEXT_PUBLIC_DOCS_DOMAIN set, returns the subdomain URL. Locally (no env var), falls back to the /p/ path.

Signature

ts
function buildProjectUrl(slug: string, urlId: string): string

Parameters

NameType
slugstring
urlIdstring

Returns: string

Was this page helpful?

Download as PDF