Files: 5950faeacb8769b5500975e38947b096080a2de0 / config.js
349 bytesRaw
1 | const Config = require('ssb-config/inject') |
2 | const nest = require('depnest') |
3 | |
4 | exports.gives = nest('config.sync.load') |
5 | exports.create = (api) => { |
6 | var config |
7 | return nest('config.sync.load', () => { |
8 | if (!config) { |
9 | config = Config(process.env.ssb_appname) |
10 | config.manifest = require('./manifest.json') |
11 | } |
12 | return config |
13 | }) |
14 | } |
15 |
Built with git-ssb-web