We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0907034 commit 2894923Copy full SHA for 2894923
1 file changed
middleware/context.js
@@ -51,6 +51,7 @@ module.exports = async function contextualize (req, res, next) {
51
req.context.siteTree = siteTree
52
req.context.pages = pageMap
53
54
+ // TODO we should create new data directories for these example files instead of using variable files
55
if (productMap[req.context.currentProduct]) {
56
req.context.productCodeExamples = req.context.site.data.variables[`${productMap[req.context.currentProduct].id}_code_examples`]
57
req.context.productCommunityExamples = req.context.site.data.variables[`${productMap[req.context.currentProduct].id}_community_examples`]
0 commit comments