From d1dfcb3a04ffd65bf8d3b892f6d31eb9c82a499f Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 3 Jul 2024 17:03:53 +0200 Subject: [PATCH] Add dev url for search --- resources/js/composables/useSearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/composables/useSearch.js b/resources/js/composables/useSearch.js index d1de3e30..34dff2c8 100644 --- a/resources/js/composables/useSearch.js +++ b/resources/js/composables/useSearch.js @@ -4,7 +4,7 @@ export default function useSearch() { const axios = inject('axios'); async function search(text, filters = [], options = {}) { var response = await axios.post( - '/indexes/members/search', + import.meta.env.MODE === 'development' ? 'http://localhost:7700/indexes/members/search' : '/indexes/members/search', { q: text, filter: filters,