fix(navbar): remove ios and mac badge from apps nav link
This commit is contained in:
@@ -45,8 +45,7 @@
|
||||
},
|
||||
{
|
||||
"label": { "en": "Apps", "hi": "ऐप्स" },
|
||||
"href": "/apps",
|
||||
"badge": "iOS · Mac"
|
||||
"href": "/apps"
|
||||
},
|
||||
{
|
||||
"label": { "en": "Pricing", "hi": "मूल्य निर्धारण" },
|
||||
|
||||
@@ -25,7 +25,7 @@ function readJsonFile<T>(filePath: string): T | null {
|
||||
}
|
||||
|
||||
export function getSiteConfig(): SiteConfig {
|
||||
if (siteConfigCache) return siteConfigCache;
|
||||
if (siteConfigCache && process.env.NODE_ENV === 'production') return siteConfigCache;
|
||||
const config = readJsonFile<SiteConfig>(path.join(CONTENT_DIR, 'site.config.json'));
|
||||
if (!config) {
|
||||
throw new Error('Crucial site.config.json missing or invalid');
|
||||
|
||||
Reference in New Issue
Block a user