mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 20:48:11 +00:00
bugs
This commit is contained in:
@@ -7,7 +7,8 @@ const {
|
||||
const md5 = require('md5');
|
||||
const atomicalgolia = require("atomic-algolia");
|
||||
const fs = require('fs');
|
||||
const indexName = "dev_docs"
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
const indexName = isProduction ? "prod_docs" : "dev_docs";
|
||||
const nue = [];
|
||||
const rawdata = fs.readFileSync('public/algolia.json');
|
||||
const nodes = JSON.parse(rawdata);
|
||||
|
||||
Reference in New Issue
Block a user