fix(next): infinite loop when logging into root admin (#7412)

This commit is contained in:
Jacob Fletcher
2024-07-29 12:57:57 -04:00
committed by GitHub
parent 7ed6634bc5
commit 874279c530
12 changed files with 82 additions and 36 deletions

View File

@@ -13,7 +13,7 @@ import type { Config } from './payload-types.js'
import {
ensureCompilationIsDone,
getAdminRoutes,
getRoutes,
initPageConsoleErrorCatch,
saveDocAndAssert,
} from '../helpers.js'
@@ -49,7 +49,7 @@ const createFirstUser = async ({
routes: { createFirstUser: createFirstUserRoute },
},
routes: { admin: adminRoute },
} = getAdminRoutes({
} = getRoutes({
customAdminRoutes,
customRoutes,
})