Skip to content

Commit dd00a96

Browse files
twosugarclaude
andauthored
Feat/fix cn nav pipeline (#1237)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent f01ca65 commit dd00a96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/shell/TopNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default function TopNav({ locale, pathname: initialPath = '/' }: Props) {
7676
}, [])
7777
const navItems = navForLocale(locale)
7878
// CN region hides Pricing / Docs / the Features menu (legacy CN_HIDDEN_KEYS).
79-
const isCnRegion = import.meta.env.VITE_REGION === 'cn'
79+
const isCnRegion = import.meta.env.PUBLIC_REGION === 'cn'
8080
const CN_HIDDEN_LINKS = new Set(['/pricing', '/docs'])
8181
const visibleNavItems = isCnRegion
8282
? navItems.filter((n) => !n.link || !CN_HIDDEN_LINKS.has(n.link))

0 commit comments

Comments
 (0)