chore: Add login to rewrites (#11466)

pull/11469/head
Alex van Andel 2023-09-20 19:56:48 +01:00 committed by GitHub
parent fd02cc44fa
commit a5c05bc550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -226,6 +226,10 @@ const nextConfig = {
},
async rewrites() {
const beforeFiles = [
{
source: "/login",
destination: "/auth/login",
},
// These rewrites are other than booking pages rewrites and so that they aren't redirected to org pages ensure that they happen in beforeFiles
...(isOrganizationsEnabled
? [