Skip to content

Instantly share code, notes, and snippets.


mtermoul/cosmic.js Secret

Created Apr 3, 2019
What would you like to do?
const Cosmic = require('cosmicjs')
const config = {
bucket: {
slug: process.env.COSMIC_BUCKET || 'col-admin',
read_key: process.env.COSMIC_READ_KEY,
write_key: process.env.COSMIC_WRITE_KEY
module.exports = Cosmic().bucket(config.bucket)
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.