Skip to content

Commit 5a07447

Browse files
committed
add comment clarifying purpose of separate middleware
1 parent 38659b3 commit 5a07447

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

middleware/early-access-breadcrumbs.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
const path = require('path')
22
const { getPathWithoutLanguage } = require('../lib/path-utils')
33

4+
// Early Access content doesn't conform to the same structure as other products, so we
5+
// can't derive breadcrumbs from the siteTree in the same way. Hence, this separate middleware.
46
module.exports = async (req, res, next) => {
57
if (!req.context.page) return next()
68
if (!req.context.page.hidden) return next()

0 commit comments

Comments
 (0)