Skip to content

Instantly share code, notes, and snippets.

@mateocain
Created October 17, 2017 05:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Cosmic Band Site App Config - For Article
// app.js
const truncate = require('truncate-html')
const moment = require('moment')
const exphbs = require('express-handlebars')
var config = {
bucket: {
slug: process.env.COSMIC_BUCKET,
read_key: process.env.COSMIC_READ_KEY,
write_key: process.env.COSMIC_WRITE_KEY
}
}
app.locals.cosmicConfig = config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment