Build warnings?

here's my signIn .tsx file whats wrong here import {Button, Center, Stack} from '@mantine/core' import {GetServerSidePropsContext, NextPage} from 'next' import {getProviders, signIn} from 'next-auth/react' import {AppProps} from 'next/app' import {getServerAuthSession} from '~/server/auth' type SignInProps = { providers: AppProps } const SignInPage: NextPage<SignInProps> = ({providers}) => { return ( <Center m={4}> <Stack pt="xl" spacing="xs"> {Object.keys(providers).map((provider, index) => ( <Button key={index} m={4} onClick={() => signIn(provider, {callbackUrl: window.location.origin}) } tt="capitalize" > Sign In with {provider} </Button> ))} </Stack> </Center> ) } export default SignInPage export async function getServerSideProps(ctx: GetServerSidePropsContext) { const session = await getServerAuthSession(ctx) if (session) { return { redirect: { destination: '/', permanent: false, }, } } const providers = await getProviders() return { props: { providers, }, } } why m getting this warning
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server