Front end
Configuration parameters
Configuration parameters are either passed in as dataset parameters on the script tag for inline integration, or as same value in query search parameter if hosted / iframe integration. In this case, its the same value, but without the data- prefix.
| Config Parameter | Data parameter(script tag) | Options | Default | Comment |
|---|---|---|---|---|
| environment | data-environment | staging, production | production | Which environment to load |
| currency | data-currency | Any ISO 4217 supported code | EUR | |
| whiteLabel | data-white-label | %customer% | none | Is required. Will be provided to you by your key account manager. |
| token | data-token | none | none | Token should be generated when a user is logged in and passed to this parameter. If a token is present the platform will assume a user is logged in. |
| basePath | data-base-path | none | / | Should be the base path to the game. For instance /sports/fantasy/. Base path should always have a trailing slash. |
| root | data-root | Any URL | https://fantasy-game.api.monkeybytes.dev | URL to game server. |
| ws | data-ws | Any URL | https://fantasy-game.ws.monkeybytes.dev | URL to web socket server. |
| assetHost | data-asset-host | Any URL | https://fantasy.assets.monkeybytes.dev | URL to assets(icons etc). |
| lang | data-lang | iso-639-1 code. E.g. en |
