18 lines
459 B
JavaScript
Raw Normal View History

2025-02-25 13:59:26 +01:00
import open from "open";
export function openCodexApp(config) {
// TODO: Update this to the main URL when the PR for adding api-port query parameter support
// has been merged and deployed.
// See: https://github.com/codex-storage/codex-marketplace-ui/issues/92
const segments = [
2025-02-25 13:59:26 +01:00
"https://releases-v0-0-14.codex-marketplace-ui.pages.dev/",
"?",
`api-port=${config.ports.apiPort}`,
];
const url = segments.join("");
2025-02-25 13:59:26 +01:00
open(url);
}