budibase/packages/auth/src/db/index.js

12 lines
271 B
JavaScript
Raw Normal View History

2021-04-07 12:33:16 +02:00
const PouchDB = require("pouchdb")
// level option is purely for testing (development)
const COUCH_DB_URL =
process.env.COUCH_DB_URL || "http://budibase:budibase@localhost:10000/db/"
const Pouch = PouchDB.defaults({
prefix: COUCH_DB_URL,
})
module.exports = Pouch