fix redirect from sign-in page

This commit is contained in:
MarconLP 2023-04-20 14:19:16 +02:00
parent 9d47017f5e
commit da47aac48b
No known key found for this signature in database
GPG key ID: A08A9C8B623F5EA5

View file

@ -63,7 +63,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
// Note: Make sure not to redirect to the same page
// To avoid an infinite loop!
if (session) {
return { redirect: { destination: "/" } };
return { redirect: { destination: "/videos" } };
}
const providers = await getProviders();