Skip to content

Instantly share code, notes, and snippets.

@Abeyy Abeyy/config.js Secret
Last active Aug 29, 2018

What would you like to do?
Cosmic Game
import Cosmic from 'cosmicjs'
const api = Cosmic()
const bucket = api.bucket({
slug: process.env.COSMIC_BUCKET || 'cosmic-game',
read_key: process.env.COSMIC_READ_KEY,
write_key: process.env.COSMIC_WRITE_KEY
export default 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.