import prerender from './prerender'

// This is a wrapper to handle a single isomorphic render inside a child process

function startRender(context) {
  prerender(context).then((result) => {
    process.send(result, null, {}, () => {
      process.exit(0)
    })
  }).catch(() => {
    process.exit(1)
  })
}

process.on('message', startRender)


import prerender from './prerender'
import { updateStrings as updateTimeAgoStrings } from './../lib/time_ago_in_words'

updateTimeAgoStrings({ about: '' })

// This is a wrapper to handle a single isomorphic render inside a child process

function startRender(context) {
  prerender(context).then((result) => {
    process.send(result, null, {}, () => {
      process.exit(0)
    })
  }).catch(() => {
    process.exit(1)
  })
}

process.on('message', startRender)


Add time ago in words to the server render
Add time ago in words to the server render
