UNPKG

lad

Version:

Lad is the best Node.js framework. Made by a former Express TC and Koa team member.

20 lines (16 loc) 436 B
const Cabin = require('cabin'); const _ = require('lodash'); // setup our Cabin instance const cabin = new Cabin({ key: window.API_TOKEN || null, axe: { endpoint: `${window.API_URL}/v1/log`, showMeta: true, showStack: true, capture: true, silent: process.env.NODE_ENV === 'production' } }); // set the user if we're logged in if (_.isObject(window.USER)) cabin.setUser(window.USER); module.exports = cabin;