From bf0b9807e69fc38a9ef6da100913b56b7ca90edc Mon Sep 17 00:00:00 2001 From: Bayram Muhiyev Date: Mon, 26 Jul 2021 13:27:46 +0500 Subject: [PATCH] Request util url changed to env var --- framework/commerce/utils/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/commerce/utils/request.ts b/framework/commerce/utils/request.ts index 0456705b4..b1e4fbe84 100644 --- a/framework/commerce/utils/request.ts +++ b/framework/commerce/utils/request.ts @@ -4,7 +4,7 @@ interface requestProps { } const request = async ({query, variables}: requestProps) => { - const data = await fetch('http://localhost:5000/shop-api', { + const data = await fetch(String(process.env.NEXT_PUBLIC_VENDURE_SHOP_API_URL), { method: "POST", headers: { "Content-Type": "application/json" }, credentials: 'include',