Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request #8 from htdangkhoa/develop
Browse files Browse the repository at this point in the history
add heroku to base url
  • Loading branch information
htdangkhoa authored Dec 2, 2019
2 parents 448f6eb + 3f39420 commit 3732965
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3732965

Please sign in to comment.