fix(dashboard-v2): always set portal domain for SkynetClient
This commit is contained in:
parent
d6fe2d2f1d
commit
7248147ba7
|
@ -1,6 +1,3 @@
|
||||||
import { SkynetClient } from "skynet-js";
|
import { SkynetClient } from "skynet-js";
|
||||||
|
|
||||||
const { NODE_ENV, GATSBY_PORTAL_DOMAIN } = process.env;
|
export default new SkynetClient(`https://${process.env.GATSBY_PORTAL_DOMAIN}`);
|
||||||
|
|
||||||
// In production-like environment, let SkynetClient figure out the best portal
|
|
||||||
export default new SkynetClient(NODE_ENV === "development" ? `https://${GATSBY_PORTAL_DOMAIN}` : undefined);
|
|
||||||
|
|
Reference in New Issue