diff --git a/components/Shell.tsx b/components/Shell.tsx index b1a47da14b..15918e37b8 100644 --- a/components/Shell.tsx +++ b/components/Shell.tsx @@ -59,7 +59,7 @@ export default function Shell(props) { Integrations - + Settings diff --git a/next.config.js b/next.config.js index 9ffb8597d2..4b172ebdec 100644 --- a/next.config.js +++ b/next.config.js @@ -22,4 +22,13 @@ module.exports = withTM({ typescript: { ignoreBuildErrors: true, }, + async redirects() { + return [ + { + source: '/settings', + destination: '/settings/profile', + permanent: true, + } + ] + } }); diff --git a/pages/settings/index.tsx b/pages/settings/index.tsx deleted file mode 100644 index dd0adcff2c..0000000000 --- a/pages/settings/index.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { useRouter } from 'next/router'; -import { signIn, useSession, getSession } from 'next-auth/client'; - -export default function Settings() { - const [ session, loading ] = useSession(); - const router = useRouter(); - - if (loading) { - return

Loading...

; - } else { - if (!session) { - window.location.href = "/auth/login"; - } - } - - router.replace('/settings/profile'); - - return null; -} \ No newline at end of file