import { GetServerSidePropsResult } from 'next' import { groups } from '@/shared/data/groups' export default function HomePage() { } export async function getServerSideProps(): Promise>> { // Получаем первую группу из списка const firstGroupId = Object.keys(groups)[0] return { redirect: { destination: `/${firstGroupId}`, permanent: true } } }