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

13 lines
301 B
JavaScript
Raw Normal View History

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