diff --git a/apps/leafcutter/tsconfig.json b/apps/leafcutter/tsconfig.json index cdde52e..56ddbc7 100644 --- a/apps/leafcutter/tsconfig.json +++ b/apps/leafcutter/tsconfig.json @@ -14,7 +14,10 @@ "isolatedModules": true, "jsx": "preserve", "incremental": true, - "baseUrl": "." + "baseUrl": ".", + "paths": { + "@/*": ["./*", "../../node_modules/*"] + } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "exclude": ["node_modules"] diff --git a/apps/link/lib/checkAuth.ts b/apps/link/lib/checkAuth.ts deleted file mode 100644 index 0b2e3ab..0000000 --- a/apps/link/lib/checkAuth.ts +++ /dev/null @@ -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 }, - }; -}; diff --git a/apps/link/tsconfig.json b/apps/link/tsconfig.json index e6a3d0b..451cf6a 100644 --- a/apps/link/tsconfig.json +++ b/apps/link/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "preserve", "incremental": true, "paths": { - "@/*": ["./*"] + "@/*": ["./*", "../../node_modules/*"] }, "baseUrl": "." }, diff --git a/apps/metamigo-frontend/tsconfig.json b/apps/metamigo-frontend/tsconfig.json index 6806613..34c0d52 100644 --- a/apps/metamigo-frontend/tsconfig.json +++ b/apps/metamigo-frontend/tsconfig.json @@ -14,7 +14,11 @@ "jsx": "preserve", "incremental": true, "skipLibCheck": true, - "strict": true + "strict": true, + "baseUrl": ".", + "paths": { + "@/*": ["./*", "../../node_modules/*"] + } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "exclude": ["node_modules"]