Get app config data into a plugin for Custom Field

System Information
  • Strapi Version: 4.7.0
  • Operating System: MacOs
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

Hello,
I created a local plugin in src/plugins/my-plugin and I added if to config/plugins.ts like this :

  "my-plugin": {
    enabled: true,
    resolve: "./src/plugins/my-plugin",
    config: {
      featuresEnum: FeaturesEnum
    }
  }

In this plugin I created a custom field and I would like to retrieve the featuresEnum I put in the plugins config.

What’s the best way to do it ?

It seems not so easy to retrieve its data in the admin section of the plugin. I’m pretty sure there’s a way to do it. I can get the config in the server/registrer for example with strapi.config.get('plugin.my-plugin') but I don’t know how to do it properly in the admin.

Any ideas ?

thanks !!

It seems I’m not the first having the same kind of question : Custom field settings

Any ideas please ?