This commit is contained in:
Westly Wright
2018-07-03 15:08:10 -07:00
parent 60cb1c91a3
commit d12245308b
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -19,6 +19,9 @@ const isProduction = process.env.NODE_ENV === 'production';
const onError = (err) => {
console.log(err);
}
console.log('&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&')
console.log(process.env)
console.log('&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&')
process.on('SIGINT', () => {
console.log('Caught SIGINT, exiting');
+3
View File
@@ -11,6 +11,9 @@ const nue = [];
const rawdata = fs.readFileSync('public/algolia.json');
const nodes = JSON.parse(rawdata);
console.log('&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&')
console.log(process.env)
console.log('&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&')
nodes.forEach(node => {
const dom = new JSDOM(node.content);
const content = dom.window.document.body; //post content wrapped in a body tag