Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import faunadb from 'faunadb'
require('dotenv').config()
const headers = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': 'Content-Type',
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE',
}
const client = new faunadb.Client({
secret: process.env.FAUNADB_SERVER_SECRET,
})
export { client, headers }
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.