Closed 12-plus-1 closed 2 years ago
Thanks for your PR.
We need a dynamic Api URL to provide a different development environment, it's like:
packages/hedgehog-lab/src/network/http.ts
const hostname = window.location.hostname;
let url
switch (hostname) {
case "preview.hlab.app":
url = "https://api.preview.hlab.app";
break;
case "hlab.app":
url = "https://api.hlab.app";
break;
default:
url = "http://localhost:9000";
}
But it is just a temporary solution, maybe we could create a global env to set the dynamic URL.