From fab148764d848522a4c62f826c70c14eab0c0aa1 Mon Sep 17 00:00:00 2001 From: TeshuKatepalli Date: Wed, 20 Sep 2023 14:25:05 +0530 Subject: [PATCH] url change in search --- blocks/header/header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/header/header.js b/blocks/header/header.js index 575945a..bd97748 100644 --- a/blocks/header/header.js +++ b/blocks/header/header.js @@ -172,7 +172,7 @@ export default async function decorate(block) { const searchTerm = this.value.toLowerCase(); // Get the lowercase search term // Fetch the JSON data from the URL - fetch('http://localhost:3000/query-index.json') + fetch('https://main--adobe-franklin--teshukatepalli.hlx.live/query-index.json') .then(response => response.json()) .then(jsonData => { // Perform a search based on the fetched JSON data