changed localhost to public ip
This commit is contained in:
@@ -97,7 +97,7 @@ router.get ('/search/listings', async (req, res, next) => {
|
||||
|
||||
//Get only ads with location
|
||||
query = Object.assign (query, {
|
||||
has_map: true,
|
||||
hasMap: true,
|
||||
});
|
||||
|
||||
//AND
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import fetch from 'isomorphic-fetch'
|
||||
|
||||
const BASE_URL = 'localhost';
|
||||
//const BASE_URL = 'localhost';
|
||||
//const BASE_URL = '192.168.0.13';
|
||||
const BASE_URL = '138.68.67.31';
|
||||
|
||||
export const saveContactRequest = (listingId, params) => {
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ S poštovanjem
|
||||
|
||||
export const listingUrl = (id) => {
|
||||
// TODO: fix this once removing hardcoded values
|
||||
return `http://localhost:8080/?listingId=${id}`
|
||||
return `http://http://138.68.67.31/?listingId=${id}`
|
||||
}
|
||||
|
||||
export const isMobile = () => window.matchMedia("(max-width: 768px)").matches
|
||||
|
||||
@@ -3,7 +3,7 @@ module.exports = {
|
||||
output: {
|
||||
path: __dirname + "/dist",
|
||||
filename: "app.bundle.js",
|
||||
publicPath: "http://0.0.0.0:8080/"
|
||||
publicPath: "http://138.68.67.31:8080/"
|
||||
},
|
||||
devServer: {
|
||||
// .. rest of devserver options
|
||||
|
||||
Reference in New Issue
Block a user