2025-04-02 10:50:46 +02:00

18 lines
459 B
JavaScript

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 = [
"https://releases-v0-0-14.codex-marketplace-ui.pages.dev/",
"?",
`api-port=${config.ports.apiPort}`,
];
const url = segments.join("");
open(url);
}