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');