Files
umed/web/data/sitemap-routes.ts
T
2026-07-09 14:35:32 +08:00

71 lines
2.3 KiB
TypeScript

import {
getHealthScreeningsDropdown,
healthScreeningsOverviewPath
} from '~/data/health-screenings-nav'
import { siteVisibility } from '~/data/site-visibility'
export type SitemapRoute = {
path: string
changefreq: 'weekly' | 'monthly' | 'yearly'
priority: number
}
const healthScreeningRoutes: SitemapRoute[] = [
{ path: healthScreeningsOverviewPath, changefreq: 'monthly', priority: 0.8 },
...getHealthScreeningsDropdown('en').map((item) => ({
path: item.to,
changefreq: 'monthly' as const,
priority: 0.7
}))
]
const allSitemapRoutes = [
{ path: '/', changefreq: 'weekly', priority: 1 },
{ path: '/about-us', changefreq: 'monthly', priority: 0.9 },
{ path: '/services', changefreq: 'monthly', priority: 0.9 },
{ path: '/free-assessment', changefreq: 'monthly', priority: 0.9 },
{ path: '/partner-with-us', changefreq: 'monthly', priority: 0.8 },
{ path: '/cases', changefreq: 'monthly', priority: 0.8 },
{ path: '/news', changefreq: 'monthly', priority: 0.8 },
{ path: '/faq', changefreq: 'monthly', priority: 0.8 },
{ path: '/hospitals', changefreq: 'monthly', priority: 0.8 },
{ path: '/doctors', changefreq: 'monthly', priority: 0.7 },
{ path: '/sitemap', changefreq: 'monthly', priority: 0.4 },
...healthScreeningRoutes,
{
path: '/patient-guide/why-choose-china-for-medical-tourism',
changefreq: 'monthly',
priority: 0.8
},
{
path: '/patient-guide/china-medical-tourism-visa-guide',
changefreq: 'monthly',
priority: 0.8
},
{
path: '/patient-guide/how-to-get-china-medical-s1-s2-visa',
changefreq: 'monthly',
priority: 0.8
},
{ path: '/patient-guide/explore-china-visa-free', changefreq: 'monthly', priority: 0.7 },
{
path: '/patient-guide/china-healthcare-a-foreigners-definitive-guide',
changefreq: 'monthly',
priority: 0.8
},
{
path: '/patient-guide/secure-convenient-wechat-pay-for-medical-tourism',
changefreq: 'monthly',
priority: 0.6
},
{
path: '/patient-guide/how-to-set-up-use-alipay-for-medical-tourism',
changefreq: 'monthly',
priority: 0.6
}
] as const satisfies readonly SitemapRoute[]
export const sitemapRoutes: readonly SitemapRoute[] = allSitemapRoutes.filter(
(route) => siteVisibility.showFaqPage || route.path !== '/faq'
)