-
-
Save mtermoul/f62c54b2921ccc84a46ab545cdf4208d to your computer and use it in GitHub Desktop.
col-admin/src/api/cosmic.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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