import Head from 'next/head'; import { authOptions } from '../../pages/api/auth/[...nextauth]'; import { unstable_getServerSession } from 'next-auth/next'; //Components import StorageUsedChartBar from '../../Containers/Monitoring/StorageUsedChartBar/StorageUsedChartBar'; export default function Monitoring() { return ( <> Monitoring - BorgWarehouse

📊 Storage used

); } export async function getServerSideProps(context) { //Var const session = await unstable_getServerSession( context.req, context.res, authOptions ); if (!session) { return { redirect: { destination: '/login', permanent: false, }, }; } return { props: {}, }; }