{"size": 517, "ext": "js", "max_stars_repo_path": "server/util/renderIndex.js", "max_stars_repo_name": "hckhanh/note-sth", "max_stars_repo_stars_event_min_datetime": "2020-07-23T16:06:36.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-23T16:06:36.000Z", "max_issues_repo_path": "server/util/renderIndex.js", "max_issues_repo_name": "hckhanh/note-sth", "max_issues_repo_issues_event_min_datetime": "2020-09-03T18:16:17.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-12T12:52:43.000Z", "max_forks_repo_path": "server/util/renderIndex.js", "max_forks_repo_name": "hckhanh/note-sth", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 21.5416666667, "max_line_length": 87, "alphanum_fraction": 0.667311412}
'use strict'

const { FACEBOOK_APP_ID, APP_URL, APP_TITLE, APP_DESCRIPTION, APP_IMAGE } = process.env

let APP_CSS = '/index.css'
let APP_JS = '/index.js'
if (process.env.NODE_ENV === 'production') {
  const assetsManifest = require('../../client/dist/manifest.json')
  APP_CSS = assetsManifest['/index.css']
  APP_JS = assetsManifest['/index.js']
}

module.exports = res => {
  res.render('index', {
    FACEBOOK_APP_ID,
    APP_URL,
    APP_TITLE,
    APP_DESCRIPTION,
    APP_IMAGE,
    APP_CSS,
    APP_JS
  })
}
