Skip to content

Instantly share code, notes, and snippets.

@availit
Created May 30, 2019 03:21
Show Gist options
  • Save availit/a7473e371e32250831f2a103100524e0 to your computer and use it in GitHub Desktop.
Save availit/a7473e371e32250831f2a103100524e0 to your computer and use it in GitHub Desktop.
const Cosmic = require('cosmicjs')();
const database = Cosmic.bucket({
slug: 'YOUR BUCKET SLUG',
write_key: 'YOUR BUCKET WRITE KEY',
read_key: 'YOUR BUCKET READ KEY'
})
export default database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment