1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/script/sync-algolia-search-indices.js
Sarah Schneider aa5a62d49d Remove versions feature flag code (#15793)
* remove FEATURE_NEW_VERSIONS from feature-flags.json

* remove process.env.FEATURE_NEW_VERSIONS from include files

* remove process.env.FEATURE_NEW_VERSIONS from lib files

* remove process.env.FEATURE_NEW_VERSIONS from middleware files

* remove process.env.FEATURE_NEW_VERSIONS from script files

* remove process.env.FEATURE_NEW_VERSIONS from test files

* update test fixtures to use new versions as canonical fixtures
2020-09-29 13:36:07 -04:00

21 lines
497 B
JavaScript
Executable File

#!/usr/bin/env node
// [start-readme]
//
// This script is run automatically via GitHub Actions on every push to `master` to generate searchable data
// and upload it to our Algolia account. It can also be run manually. For more info see [contributing/search.md](contributing/search.md)
//
// [end-readme]
require('make-promises-safe')
main()
async function main () {
const sync = require('../lib/algolia/sync')
const opts = {
dryRun: 'DRY_RUN' in process.env
}
await sync(opts)
}