Skip to content

AIDC Toolkit / Core / websiteURL

Function: websiteURL()

websiteURL(version, includeVersionInProduction, alphaURL, nonAlphaRelativeURL?): string

Defined in: website-url.ts:60

Determine the website URL based on the package version.

Parameters

version

string

Package version.

includeVersionInProduction

boolean

If true, the version is included in the URL in production.

alphaURL

string

URL if pre-release identifier is "alpha".

nonAlphaRelativeURL?

string

Non-alpha URL, relative to website base URL plus pre-release identifier (optional) and version.

Returns

string

Fully-formed website URL based on the package version.