From 89cdd72ddd9ff9ec9b236483ce797ac1b6ce586b Mon Sep 17 00:00:00 2001 From: vshnosngh Date: Wed, 11 Nov 2026 16:42:11 +0530 Subject: [PATCH] fix(navbar): remove ios and mac badge from apps nav link --- content/site.config.json | 3 +-- src/lib/config/loader.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/content/site.config.json b/content/site.config.json index 319beca..2dcf955 100644 --- a/content/site.config.json +++ b/content/site.config.json @@ -45,8 +45,7 @@ }, { "label": { "en": "Apps", "hi": "ऐप्स" }, - "href": "/apps", - "badge": "iOS · Mac" + "href": "/apps" }, { "label": { "en": "Pricing", "hi": "मूल्य निर्धारण" }, diff --git a/src/lib/config/loader.ts b/src/lib/config/loader.ts index f5f585f..afe7ae9 100644 --- a/src/lib/config/loader.ts +++ b/src/lib/config/loader.ts @@ -25,7 +25,7 @@ function readJsonFile(filePath: string): T | null { } export function getSiteConfig(): SiteConfig { - if (siteConfigCache) return siteConfigCache; + if (siteConfigCache && process.env.NODE_ENV === 'production') return siteConfigCache; const config = readJsonFile(path.join(CONTENT_DIR, 'site.config.json')); if (!config) { throw new Error('Crucial site.config.json missing or invalid');