From 02ec176670cd9fdfc989f31cf5093703e9691d25 Mon Sep 17 00:00:00 2001 From: Keith Stevens Date: Sun, 18 Dec 2022 17:38:59 +0900 Subject: [PATCH] Adding a jsconfig to ensure all javascript imports can be absolute instead of relative --- website/jsconfig.json | 5 +++++ website/pages/api/new_task.js | 2 +- website/pages/index.js | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 website/jsconfig.json diff --git a/website/jsconfig.json b/website/jsconfig.json new file mode 100644 index 00000000..36aa1a4d --- /dev/null +++ b/website/jsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "baseUrl": "." + } +} diff --git a/website/pages/api/new_task.js b/website/pages/api/new_task.js index 790c3f23..6743b33a 100644 --- a/website/pages/api/new_task.js +++ b/website/pages/api/new_task.js @@ -1,5 +1,5 @@ import { unstable_getServerSession } from "next-auth/next"; -import { authOptions } from "./auth/[...nextauth]"; +import { authOptions } from "pages/api/auth/[...nextauth]"; /** * Returns a new task created from the Task Backend. We do a few things here: diff --git a/website/pages/index.js b/website/pages/index.js index f0cb441a..9df611b9 100644 --- a/website/pages/index.js +++ b/website/pages/index.js @@ -5,7 +5,7 @@ import { useSession, signIn, signOut } from "next-auth/react"; import { useEffect, useState } from "react"; import useSWR from "swr"; -import styles from "../styles/Home.module.css"; +import styles from "styles/Home.module.css"; const fetcher = (url) => axios.get(url).then((res) => res.data);