add scripts to auto-install

This commit is contained in:
kilyabin
2025-11-18 03:57:22 +04:00
parent f7a8cc622f
commit b82d4e5085
12 changed files with 715 additions and 275 deletions

View File

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