Skip to content

Commit

Permalink
fix: init
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderleegs committed Feb 21, 2025
1 parent 1b5b3fa commit 071352f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions assets/js/algolia-search-landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ const CATEGORY_INTERNAL_MAPPING = {
"Treaties Supplement": "Treaties Supplement"
}

const PROD_URL = "https://www.egazette.gov.sg";
const isProd = window.location.origin === PROD_URL;
const searchClient = algoliasearch(
"1V7DZGZJKK",
isProd ? "ff6219a3539653aa48773bf03199b95e" : "bbc5751b3f9b7fdfc08c99712adfa397"
);

const PROD_URL = "https://www.egazette.gov.sg";
const isProd = window.location.origin === PROD_URL;
const algoliaIndexName = isProd
? "prod_ogp_egazettes_index"
: "staging_ogp_egazettes_index";
Expand Down

0 comments on commit 071352f

Please sign in to comment.