Fix issue with deep linking not working due to session data race condition

This commit is contained in:
Brahim Hadriche committed 2025-06-17 13:24:00 -04:00
1 parent 13cd469400
commit 3ca87dc1d4
5 files changed
+50 -4

No files matched your search

+6 -1
View File
@@ -11,15 +11,20 @@ const config = getEnvVars(['ROKU_DEV_TARGET']);
});
parser.add_argument('--app-id', { help: 'App Id' });
parser.add_argument('--query', { help: 'Query parameters to append to the URL' });
const args = parser.parse_args();
let appId = args.app_id || "dev";
const query = args.query || "";
if (appId === "prod") {
appId = "693751";
}
const url = `http://${config.ROKU_DEV_TARGET}:8060/launch/${appId}?restart=true`;
let url = `http://${config.ROKU_DEV_TARGET}:8060/launch/${appId}?restart=true`;
if (query) {
url += `&${query}`;
}
console.log("Restarting app", appId);
await fetch(url, {
method: 'POST',