Skip to content

Instantly share code, notes, and snippets.

@mateocain mateocain/app-config-1.js Secret

Created Oct 17, 2017
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
You can’t perform that action at this time.