tldraw/packages/www/pages/index.tsx
2021-09-03 16:09:54 +01:00

33 lines
787 B
TypeScript

import Head from 'next/head'
import dynamic from 'next/dynamic'
const Editor = dynamic(() => import('../components/editor'), { ssr: false })
// import type { GetServerSideProps } from 'next'
// import { getSession } from 'next-auth/client'
export default function Home(): JSX.Element {
return (
<>
<Head>
<title>tldraw</title>
</Head>
<div>
<Editor />
</div>
</>
)
}
// export const getServerSideProps: GetServerSideProps = async (context) => {
// const session = await getSession(context)
// if (!session?.user && process.env.NODE_ENV !== 'development') {
// context.res.setHeader('Location', `/sponsorware`)
// context.res.statusCode = 307
// }
// return {
// props: {
// session,
// },
// }
// }