LFS the Lunr Indexes (#20521)
* LFS the Lunr Indexes * Add a note about installing Git LFS * Run "install" command * Update indexes * Index names
This commit is contained in:
@@ -6,5 +6,9 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||
const fs = xFs.promises
|
||||
|
||||
export default async function getIndexNames() {
|
||||
return await fs.readdir(path.join(__dirname, '../../lib/search/indexes'))
|
||||
const indexList = await fs.readdir(path.join(__dirname, '../../lib/search/indexes'))
|
||||
return indexList
|
||||
.sort()
|
||||
.filter((index) => !index.includes('records'))
|
||||
.map((index) => index.replace('.json.br', ''))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user