# Plugins configuration
The configurations for all plugins are stored in ./config/plugins.js (see project structure). Each plugin can be configured with the following available parameters:
| Parameter | Description | Type | 
|---|---|---|
| enabled | Enable ( true) or disable (false) an installed plugin | Boolean | 
| configOptional | Used to override default plugin configuration (defined in strapi-server.js) | Object | 
| resolveOptional, only required for local plugins | Path to the plugin's folder | String | 
// path: ./config/plugins.js
module.exports = ({ env }) => ({
  // enable a plugin that doesn't require any configuration
  i18n: true,
  // enable a custom plugin
  myplugin: {
    // my-plugin is going to be the internal name used for this plugin
    enabled: true,
    resolve: './src/plugins/my-local-plugin',
    config: {
      // user plugin config goes here
    },
  },
  // disable a plugin
  myotherplugin: {
    enabled: false, // plugin installed but disabled
  },
});
💡 TIP
If no specific configuration is required, a plugin can also be declared with the shorthand syntax 'plugin-name': true.
# GraphQL configuration
The GraphQL plugin has the following specific configuration options:
| Parameter | Description | Type | 
|---|---|---|
| defaultLimit | Default value for the pagination[limit]parameter used in API calls | Integer | 
| maxLimit | Maximum value for the pagination[limit]parameter used in API calls | Integer | 
// path: ./config/plugins.js
module.exports = () => ({
  graphql: {
    enabled: true,
    config: {
      defaultLimit: 10,
      maxLimit: 20
    }
  }
})
← API Environment →