initServer(url [, b2sJWT])
Initiates the server associated with the specified URL.
Returns
Not applicable.
Parameters
Name | Type | Description | Required |
url | string | The server URL that fetches static content. | ✅ |
b2sJWT | string | The authorization header token used to access protected resources. | ❌ |
Usage example
In this example, the API initiates the server with the specified URL.
PCore.getAssetLoader().initServer('https://mirror.pegacloud.net/prweb');
Previous topic getSvcLocale(locale, key) Next topic loadAssets(assets)