Add dev url for search

This commit is contained in:
philipp lang 2024-07-03 17:03:53 +02:00
parent 7f9be4262c
commit d1dfcb3a04
1 changed files with 1 additions and 1 deletions

View File

@ -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,