Contoh berkas konfigurasi lokal JavaScript dan format JSON pendukung.
JavaScript
// Konfigurasi objek klien lokal untuk rute navigasi rp8
const clientConfig = {
brandName: "rp8",
domain: "rp84game.com",
supportedPlatform: "android",
defaultLocale: "id-ID",
navigationRoutes: {
home: "/",
download: "/download/",
helpGuide: "/help/guides/"
},
displayMode: "standalone"
};
function getRoute(target) {
return clientConfig.navigationRoutes[target] || clientConfig.navigationRoutes.home;
}
JSON
{
"brandName": "rp8",
"domain": "rp84game.com",
"supportedPlatform": "android",
"defaultLocale": "id-ID",
"navigationRoutes": {
"home": "/",
"download": "/download/",
"helpGuide": "/help/guides/"
},
"displayMode": "standalone"
}