Change temporary redirect to permanent, fix robots.txt

This commit is contained in:
VityaSchel
2023-10-14 19:58:26 +04:00
parent d1f990b706
commit 95f1b8914f
3 changed files with 5 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
User-agent: *
Disallow:
Disallow: /
Allow: /ps7
Allow: /pks35k
Sitemap: https://kspsuti.ru/sitemap.xml

View File

@@ -19,7 +19,7 @@ export function LastUpdateAt({ date }: {
<>
<div className='flex md:justify-end px-4 md:h-0'>
<span className='text-sm text-border md:whitespace-pre-wrap md:text-right'>
Последнее обновление:{'\n'}{now && formatDistanceStrict(date, now, { locale: dateFnsRuLocale, addSuffix: true })}
Последнее обновление:{'\n'}{now && date.getTime() <= now ? formatDistanceStrict(date, now, { locale: dateFnsRuLocale, addSuffix: true }) : 'только что'}
</span>
</div>

View File

@@ -6,7 +6,7 @@ export async function getServerSideProps(): Promise<GetServerSidePropsResult<Rec
return {
redirect: {
destination: '/ps7',
permanent: false
permanent: true
}
}
}