1
0
mirror of synced 2025-12-22 19:34:15 -05:00
Files
docs/script/sync-algolia-search-indices.js
2020-11-20 10:41:51 -05:00

23 lines
567 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,
language: process.env.LANGUAGE,
version: process.env.VERSION
}
await sync(opts)
}