fix(auth): make things work
This commit is contained in:
@@ -19,7 +19,9 @@ export const middleware: NextMiddleware = async (request) => {
|
||||
const { contentType, uid } = await resolveEntry(pathNameWithoutLang, lang)
|
||||
|
||||
if (!contentType || !uid) {
|
||||
throw notFound()
|
||||
throw notFound(
|
||||
`Unable to resolve CMS entry for locale "${lang}": ${pathNameWithoutLang}`
|
||||
)
|
||||
}
|
||||
|
||||
const isCurrent = contentType ? contentType.indexOf("current") >= 0 : false
|
||||
|
||||
Reference in New Issue
Block a user