codexApp.js
1 import open from "open"; 2 3 export class CodexApp { 4 constructor(configService) { 5 this.configService = configService; 6 } 7 8 openCodexApp = async () => { 9 // TODO: Update this to the main URL when the PR for adding api-port query parameter support 10 // has been merged and deployed. 11 // See: https://github.com/codex-storage/codex-marketplace-ui/issues/92 12 13 const segments = [ 14 "https://releases-v0-0-14.codex-marketplace-ui.pages.dev/", 15 "?", 16 `api-port=${this.configService.get().ports.apiPort}`, 17 ]; 18 19 const url = segments.join(""); 20 open(url); 21 }; 22 }