chore: Add login to rewrites (#11466)

This commit is contained in:
Alex van Andel authored and GitHub committed 2023-09-20 18:56:48 +00:00
1 parent fd02cc44fa
commit a5c05bc550
1 file changed
+4
+4
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
? [