fix(medusa,admin-ui): Remove forced backendUrl in development, and allow alternative host value. (#7128)

This commit is contained in:
Kasper Fabricius Kristensen authored and GitHub committed 2024-04-24 09:50:59 +02:00
1 parent 10e120062b
commit 40686ba980
4 files changed
+27 -11

No files matched your search

+1 -3
View File
@@ -76,9 +76,7 @@ export default async function ({ port, directory }) {
const { cli, binExists } = resolveAdminCLI()
if (binExists) {
const backendUrl = `http://localhost:${port}`
const adminChild = fork(cli, [`develop`, "--backend", `${backendUrl}`], {
const adminChild = fork(cli, [`develop`], {
cwd: directory,
env: process.env,
stdio: ["pipe", process.stdout, process.stderr, "ipc"],