Skip to content

Home > @unseenco/backstage-core > IProject > getAssetUrl

IProject.getAssetUrl() method

Returns the URL for an asset.

Signature:

typescript
getAssetUrl(asset: Asset | File): string | undefined;

Parameters

ParameterTypeDescription
assetAsset | FileThe asset to get the URL for

Returns:

string | undefined

The URL for the asset, or undefined if the asset is not found