♻️ (builder) Change to features-centric folder structure
This commit is contained in:
committed by
Baptiste Arnaud
parent
3686465a85
commit
643571fe7d
16
apps/builder/src/pages/index.tsx
Normal file
16
apps/builder/src/pages/index.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
import { GetServerSidePropsContext } from 'next'
|
||||
import { getSession } from 'next-auth/react'
|
||||
|
||||
export default function Page() {
|
||||
return null
|
||||
}
|
||||
|
||||
export const getServerSideProps = async (
|
||||
context: GetServerSidePropsContext
|
||||
) => {
|
||||
const session = await getSession(context)
|
||||
if (!session?.user) {
|
||||
return { redirect: { permanent: false, destination: '/signin' } }
|
||||
}
|
||||
return { redirect: { permanent: false, destination: '/typebots' } }
|
||||
}
|
Reference in New Issue
Block a user