Skip to content

Commit

Permalink
Fixed API links for production
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikkel Laursen committed Dec 15, 2016
1 parent 517d218 commit d6a4b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/server/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default function search(req, res) {
return;
}

const url = `http://${host}${port ? `:${port}` : ''}${path || ''}/search?q=${q}`;
const url = `https://${host}${__DEV__ ? `:${port}` : ''}${path || ''}/search?q=${q}`;
let next = null;
let previous = null;
if (total > start + limit) {
Expand Down

0 comments on commit d6a4b8e

Please sign in to comment.