diff --git a/frontend/next.config.js b/frontend/next.config.js
index d6727a938..feaf6cf72 100644
--- a/frontend/next.config.js
+++ b/frontend/next.config.js
@@ -4,7 +4,6 @@ const { PHASE_DEVELOPMENT_SERVER } = require('next/constants');
const amplifyConfig = require('./amplify_outputs.json');
const basePath = process.env.NEXT_PUBLIC_BASE_PATH ?? '/templates';
-const domain = process.env.NOTIFY_DOMAIN_NAME ?? 'localhost:3000';
const nextConfig = (phase) => {
const isDevServer = phase === PHASE_DEVELOPMENT_SERVER;
@@ -37,42 +36,10 @@ const nextConfig = (phase) => {
basePath: false,
permanent: false,
},
- {
- source: `${basePath}/auth/inactive`,
- destination: '/auth/inactive',
- permanent: false,
- basePath: false,
- },
- {
- source: `${basePath}/auth/signout`,
- destination: '/auth/signout',
- basePath: false,
- permanent: false,
- },
];
},
async rewrites() {
- if (includeAuthPages) {
- return [
- {
- source: '/auth/inactive',
- destination: `http://${domain}${basePath}/auth/idle`,
- basePath: false,
- },
- {
- source: '/auth/signout',
- destination: `http://${domain}${basePath}/auth/signout`,
- basePath: false,
- },
- {
- source: '/auth',
- destination: `http://${domain}${basePath}/auth`,
- basePath: false,
- },
- ];
- }
-
return [];
},
diff --git a/frontend/src/__tests__/components/molecules/LogoutWarningModal/__snapshots__/LogoutWarningModal.test.tsx.snap b/frontend/src/__tests__/components/molecules/LogoutWarningModal/__snapshots__/LogoutWarningModal.test.tsx.snap
index 1ea669db1..1f7c08313 100644
--- a/frontend/src/__tests__/components/molecules/LogoutWarningModal/__snapshots__/LogoutWarningModal.test.tsx.snap
+++ b/frontend/src/__tests__/components/molecules/LogoutWarningModal/__snapshots__/LogoutWarningModal.test.tsx.snap
@@ -43,7 +43,7 @@ exports[`LogoutWarningModal should match snapshot 1`] = `
Sign out
diff --git a/frontend/src/__tests__/components/molecules/__snapshots__/AuthLink.test.tsx.snap b/frontend/src/__tests__/components/molecules/__snapshots__/AuthLink.test.tsx.snap
index 21d22dc52..03cd61a47 100644
--- a/frontend/src/__tests__/components/molecules/__snapshots__/AuthLink.test.tsx.snap
+++ b/frontend/src/__tests__/components/molecules/__snapshots__/AuthLink.test.tsx.snap
@@ -5,7 +5,7 @@ exports[`AuthLink renders Sign in link when authStatus changes to unauthenticate
Sign in
@@ -18,7 +18,7 @@ exports[`AuthLink renders Sign in link when authStatus is configuring 1`] = `
Sign in
@@ -31,7 +31,7 @@ exports[`AuthLink renders Sign out link when authStatus changes to authenticated
Sign out
diff --git a/frontend/src/__tests__/components/molecules/__snapshots__/Header.test.tsx.snap b/frontend/src/__tests__/components/molecules/__snapshots__/Header.test.tsx.snap
index 0c62d87a4..deb18d42c 100644
--- a/frontend/src/__tests__/components/molecules/__snapshots__/Header.test.tsx.snap
+++ b/frontend/src/__tests__/components/molecules/__snapshots__/Header.test.tsx.snap
@@ -82,7 +82,7 @@ exports[`NhsNotifyHeader when authenticated matches snapshot (authenticated) 1`]