import React from 'react';
import { GetServerSideProps } from 'next';
import { checkAuth } from '@/lib/auth';
const Home = () => {
return (
Welcome to AuraVerse!
);
};
export const getServerSideProps: GetServerSideProps = async (context) => {
const authResult = await checkAuth(context);
if (!authResult.isAuthenticated) {
return {
redirect: {
destination: '/login',
permanent: false,
},
};
}
return { props: {} };
};
export default Home;