blinkk / rootjs

Root.js – A full-featured web development tool with a built-in CMS.
https://rootjs.dev
MIT License
5 stars 0 forks source link

Add config flags for enabling/disabling features #362

Open stevenle opened 1 month ago

stevenle commented 1 month ago

Description

Certain features of Root CMS should be opt-in or opt-out via some configuration flag, e.g.:

cmsPlugin({
  flags: {
    // Make the translations within Root CMS read-only, translations can only come from Google Sheets.
    disableTranslationsEditor: true,
    // Disable CSV uploads/downloads for translations.
    disableCsvTranslations: true,
  },
});