mirror of
https://github.com/zhigang1992/firebase-tools.git
synced 2026-04-28 11:55:43 +08:00
23 lines
435 B
JavaScript
23 lines
435 B
JavaScript
"use strict";
|
|
|
|
var _ = require("lodash");
|
|
var configstore = require("./configstore");
|
|
|
|
var previews = _.assign(
|
|
{
|
|
// insert previews here...
|
|
kits: false,
|
|
},
|
|
configstore.get("previews")
|
|
);
|
|
|
|
if (process.env.FIREBASE_CLI_PREVIEWS) {
|
|
process.env.FIREBASE_CLI_PREVIEWS.split(",").forEach(function(feature) {
|
|
if (_.has(previews, feature)) {
|
|
_.set(previews, feature, true);
|
|
}
|
|
});
|
|
}
|
|
|
|
module.exports = previews;
|