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.
19 lines (14 loc) • 314 B
JavaScript
;
function getService({ strapi, name, plugin = 'website-builder' }) {
return strapi.plugin(plugin).service(name);
}
async function resolveValue({ value, args }) {
if (typeof value === 'function') {
return await value(args);
}
return value;
}
module.exports = {
getService,
resolveValue,
};