From 9e0deba47dbb3c0bc8d18627b229dbbccd3f14cc Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 18 Sep 2020 06:41:05 -0700 Subject: [PATCH] Use the env var url --- src/utils/api.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/api.tsx b/src/utils/api.tsx index f15dc5d6..dd8dfed5 100644 --- a/src/utils/api.tsx +++ b/src/utils/api.tsx @@ -52,7 +52,7 @@ class Api { } } -const api: Api = new Api({ url: 'http://127.0.0.1:3000/api/v1' }) +const api: Api = new Api({ url: process.env.SIERO_API_URL || 'http://127.0.0.1:3000/api/v1' }) api.createEntity( { name: 'users' }) api.createEntity( { name: 'parties' }) api.createEntity( { name: 'weapons' })