add scripts to auto-install
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user