Update tsconfigs

This commit is contained in:
Darren Clarke 2023-05-25 07:34:58 +00:00
parent 608c26c763
commit ee4916893e
4 changed files with 10 additions and 24 deletions

View file

@ -1,21 +0,0 @@
import { GetServerSideProps, GetServerSidePropsContext } from "next";
import { getSession } from "next-auth/react";
export const checkAuth: GetServerSideProps = async (
context: GetServerSidePropsContext
) => {
const session = await getSession(context);
if (!session) {
return {
redirect: {
destination: "/login",
permanent: false,
},
};
}
return {
props: { session },
};
};

View file

@ -15,7 +15,7 @@
"jsx": "preserve",
"incremental": true,
"paths": {
"@/*": ["./*"]
"@/*": ["./*", "../../node_modules/*"]
},
"baseUrl": "."
},