apps/web: disable Link prefetch

This commit is contained in:
vchikalkin 2024-04-11 09:37:37 +03:00
parent 93d16cf35c
commit c616b981f1
2 changed files with 16 additions and 4 deletions

View File

@ -60,7 +60,7 @@ function Logo() {
return (
<Flex flexDirection="column" alignItems="flex-start" justifyContent="space-between">
<ImageWrapper>
<Link href="/">
<Link prefetch={false} href="/">
<Image priority className={styles.logo} alt="logo" src={logo} layout="responsive" />
</Link>
</ImageWrapper>

View File

@ -11,12 +11,20 @@ const items: MenuProps['items'] = [
{
// icon: <HomeOutlined />,
key: '/',
label: <Link href="/">Главная</Link>,
label: (
<Link prefetch={false} href="/">
Главная
</Link>
),
},
{
// icon: <PlusSquareOutlined />,
key: '/unlimited',
label: <Link href="/unlimited">Без ограничений</Link>,
label: (
<Link prefetch={false} href="/unlimited">
Без ограничений
</Link>
),
},
],
icon: <AppstoreOutlined />,
@ -28,7 +36,11 @@ const items: MenuProps['items'] = [
{
// icon: <DatabaseOutlined />,
key: '/admin/cache',
label: <Link href="/admin/cache">Управление кэшем</Link>,
label: (
<Link prefetch={false} href="/admin/cache">
Управление кэшем
</Link>
),
},
],
icon: <SettingOutlined />,