diff --git a/.eslintrc b/.eslintrc index 46e1265..8baed21 100644 --- a/.eslintrc +++ b/.eslintrc @@ -14,7 +14,8 @@ ], "globals": { "Position": false, - "navigator": false + "navigator": false, + "__DEV__": true }, "rules": { // overrides diff --git a/js/apis/FoodItemsApi.js b/js/apis/FoodItemsApi.js index 0c0d8e6..72be3ea 100644 --- a/js/apis/FoodItemsApi.js +++ b/js/apis/FoodItemsApi.js @@ -1,6 +1,8 @@ // @flow import { memoize } from 'ramda'; +const BASE_URL = 'aretherecookies.herokuapp.com'; + export type FoodItemsFilter = { radius?: number, }; @@ -26,7 +28,7 @@ export type FoodItemsForLocation = { export const getFoodItemsForLocation = memoize( async ({ pos: { coords: { latitude, longitude } } }: { pos: Position }): Promise => { try { - return fetch('http://192.168.122.1:3000/fooditems', { + return fetch(`https://${BASE_URL}/fooditems`, { method: 'POST', headers: { 'Content-Type': 'application/json',