strapi-plugin-website-builder
Version:
A plugin for Strapi Headless CMS that provides the ability to trigger website builds manually, periodically or through model events.
17 lines (13 loc) • 375 B
JavaScript
;
const { PLUGIN_ID } = require('../utils/constants');
module.exports = ({ strapi }) => ({
get({ path = '', defaultValue } = {}) {
if (path.length) {
path = `.${path}`;
}
return strapi.config.get(`plugin.${PLUGIN_ID}${path}`, defaultValue);
},
set({ path = '', value }) {
return strapi.config.set(`plugin.website-builder${path}`, value);
},
});