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