1
0
mirror of synced 2025-12-25 02:17:36 -05:00

Merge branch 'main' into add-layouts-middleware

This commit is contained in:
Sarah Schneider
2021-04-13 16:03:36 -04:00
committed by GitHub
7 changed files with 4554 additions and 19 deletions

View File

@@ -2,6 +2,7 @@ const previews = require('../../lib/graphql/static/previews')
const upcomingChanges = require('../../lib/graphql/static/upcoming-changes')
const changelog = require('../../lib/graphql/static/changelog')
const prerenderedObjects = require('../../lib/graphql/static/prerendered-objects')
const prerenderedInputObjects = require('../../lib/graphql/static/prerendered-input-objects')
const allVersions = require('../../lib/all-versions')
const explorerUrl = process.env.NODE_ENV === 'production'
@@ -26,6 +27,7 @@ module.exports = function graphqlContext (req, res, next) {
previewsForCurrentVersion: previews[graphqlVersion],
upcomingChangesForCurrentVersion: upcomingChanges[graphqlVersion],
prerenderedObjectsForCurrentVersion: prerenderedObjects[graphqlVersion],
prerenderedInputObjectsForCurrentVersion: prerenderedInputObjects[graphqlVersion],
explorerUrl,
changelog
}