Skip to main content


πŸ— Work in progress

The content of this page might not be fully up-to-date with Strapi 5 yet.

The configuration of a Strapi project lives in the /config folder:

. # root of the project
β”œβ”€β”€β”€β”€ config
β”‚ β”œ api.js|ts
β”‚ β”œ admin.js|ts
β”‚ β”œ cron-tasks.js|ts
β”‚ β”œ database.js|ts
β”‚ β”œ features.js|ts
β”‚ β”œ middlewares.js|ts
β”‚ β”œ plugins.js|ts
β”‚ β”” server.js|ts
The block above is an excerpt from the project structure. You can click on any file name in purple to read the corresponding documentation. Visit the project structure page for the full version.

Base configurations​

From the /config folder, you can find and define the following base configurations:

Configuration topicFile pathRequired or optional
Admin panelconfig/adminRequired
API callsconfig/apiOptional, used to define some general settings for responses and other REST-related parameters.

Additional configuration for specific features​

Some specific features require additional configuration:

FeatureLocationRequired or optional
PluginsIn the config/plugins file
  • Optional if using only built-in plugins with default presets.
  • Required to enable, configure, or disable plugins.
Can also be used to configure the Upload plugin (which handles the Media Library feature) and GraphQL.
TypeScriptRequired to use TypeScript efficiently
API tokensIn the config/admin fileRequired if using API tokens for authentication instead of the Users & Permissions plugin
Lifecycle functionsIn the /src/index fileOptionally used to perform various actions that happen during the server lifecycle. Includes the register, bootstrap, and destroy functions.
Cron jobs
  • In the /config/server file to enable the feature
  • In a dedicated, optional cron-tasks file that can be used to declare the jobs
Required to setup CRON jobs for the server.
Environment variablesIn dedicated files and folders for the environment (e.g., config/env/production/server)Optionally used to define different environments and their variables.
Single Sign-On (SSO) EnterpriseIn the config/admin fileRequired to use the Entreprise-only SSO feature if enabled on your project.
Feature flagsIn the config/features fileOptional for a typical, stable Strapi application.
Only required to enable future flags.


The following guides will help you address specific use cases related to the Strapi configuration: