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',