How to set up admin settings in plugin

→ You can add the langauge name (js) to the backquotes to add colors in discord (like in github) . Making things easier to read :smile:

→ You have 2 options

  • Create your own content-type for the settings
  • Use the core-store that store them (this is much simpler but less flexible)
 await strapi.store.set({
  type: 'plugin',
  name: 'pluginName',
  key: 'settings',
  value: settingsObject,
});


await strapi.store.get({
  type: 'plugin',
  name: 'pluginName',
  key: 'settings',
})

the value will be stored as json in the DB