From d6a4b8e72efb75857a952a6916bbcd79adbd415c Mon Sep 17 00:00:00 2001 From: Mikkel Laursen Date: Wed, 14 Dec 2016 20:43:35 -0700 Subject: [PATCH] Fixed API links for production --- api/src/server/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/server/search.js b/api/src/server/search.js index 9702619fda..f005f04f99 100644 --- a/api/src/server/search.js +++ b/api/src/server/search.js @@ -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) {