18 lines
459 B
JavaScript
Raw Normal View History

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);
}