System Information
- Strapi Version: 4.4.5
- Operating System: Ubuntu 20.04
- Database: MySQL 8.0.30
- Node Version: 14.20.0
- NPM Version: 6.14.17
- Yarn Version: 1.22.19
Hello to everybody.
Via plugin I’m playing with custom fields, but can’t figure out how to pass configuration data to react components.
// /config/plugins.ts
export default {
// ...
'my-strapi-awesome-plugin': {
enabled: true,
resolve: './src/plugins/my-strapi-awesome-plugin',
config: {
apiKey: 'qwertyui1234',
color: '#44008D'
},
},
// ...
}
But Inside my component I don’t have any access to strapi global object to make the following call
strapi.plugin('my-strapi-awesome-plugin').config('color')
How can i do?