diff --git a/src/pages/auth/login.tsx b/src/pages/auth/login.tsx index e749d41..e1a9f11 100644 --- a/src/pages/auth/login.tsx +++ b/src/pages/auth/login.tsx @@ -1,4 +1,4 @@ -import { GetServerSidePropsContext } from 'next'; +import { GetServerSideProps } from 'next'; import getConfig from 'next/config'; import * as React from 'react'; import { AuthLogin } from 'roleypoly/design-system/templates/auth-login'; @@ -14,12 +14,15 @@ const loginPage = (props: { apiURI: string }) => { export default loginPage; -export const getServerSideProps = async (context: GetServerSidePropsContext) => { +export const getServerSideProps: GetServerSideProps = async () => { const { publicRuntimeConfig } = getConfig(); return { props: { apiURI: publicRuntimeConfig.apiPublicURI, }, + redirect: { + destination: `${publicRuntimeConfig.apiPublicURI}/login-bounce`, + }, }; };