add enterpriseServerVersions to fake context in s3 script

This commit is contained in:
Sarah Schneider 2020-12-09 11:21:57 -05:00
Родитель 212fffb6e2
Коммит 8ee0ac619e
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -12,6 +12,7 @@ const patterns = require('../lib/patterns')
const authenticateToAWS = require('../lib/authenticate-to-aws.js')
const readlineSync = require('readline-sync')
const { execSync } = require('child_process')
const enterpriseServerVersions = Object.keys(allVersions).filter(v => v.startsWith('enterprise-server@'))
const uploadScript = path.join(process.cwd(), 'script/upload-images-to-s3.js')
// ignore the non-enterprise default version
@ -51,7 +52,8 @@ async function main () {
page,
site: siteData,
currentVersion: version,
currentLanguage: 'en'
currentLanguage: 'en',
enterpriseServerVersions
}
const rendered = await renderContent(page.markdown, context)