配置
¥Configuration
Strapi 项目的配置位于 /config
文件夹中:
¥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
从 /config
文件夹中,你可以找到并定义以下基本配置:
¥From the /config
folder, you can find and define the following base configurations:
配置主题 | 文件路径 | 必需或可选 |
---|---|---|