SSR
All checks were successful
deploy to production / deploy (push) Successful in 1m7s

This commit is contained in:
2023-12-06 20:11:49 +00:00
parent 82f2bf9233
commit d3b36a6716
24 changed files with 166 additions and 119 deletions

View File

@@ -6,13 +6,10 @@ module.exports = {
// / is de home
if (path == "/") return 1
// all other sites are in db
path = path?.replace(/^\//, "")
// filter for path or alternativePaths
const resp = context.db.find("content", {
filter: {
$or: [{ path }, { "alternativePaths.path": path }],
$or: [{ path }],
},
selector: { _id: 1 },
})