From 3f394209c1995452d7e6343a9253f8d3ff345e47 Mon Sep 17 00:00:00 2001 From: Huynh Tran Dang Khoa Date: Mon, 2 Dec 2019 15:08:46 +0700 Subject: [PATCH] add heroku to base url --- src/utils/request.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/request.js b/src/utils/request.js index b48099c..e987bbe 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -7,7 +7,9 @@ import { updateLoadingAction } from 'store/action'; import cookies from './cookies'; import { actionGenerator } from './'; -const baseUrl = 'http://localhost:8888/api'; +const baseUrl = __DEV__ + ? 'http://localhost:8888/api' + : 'https://htdangkhoa-erb.herokuapp.com/api'; export const request = async ({ host = baseUrl,