diff --git a/dev-docs.json b/dev-docs.json new file mode 100644 index 0000000000..2c63c08510 --- /dev/null +++ b/dev-docs.json @@ -0,0 +1,2 @@ +{ +} diff --git a/docusaurus/docs/cms/configurations/plugins.md b/docusaurus/docs/cms/configurations/plugins.md index 964adb87fe..05b8155956 100644 --- a/docusaurus/docs/cms/configurations/plugins.md +++ b/docusaurus/docs/cms/configurations/plugins.md @@ -3,6 +3,21 @@ title: Plugins configuration sidebar_label: Plugins displayed_sidebar: cmsSidebar description: Strapi plugins have a single entry point file to define their configurations. +tags: + - additional configuration + - configuration + - GraphQL + - GraphQL configuration + - plugins + - Upload configuration + - Upload plugin +--- +```markdown +--- +title: Plugins configuration +sidebar_label: Plugins +displayed_sidebar: cmsSidebar +description: Strapi plugins have a single entry point file to define their configurations. tags: - additional configuration - configuration diff --git a/docusaurus/docs/cms/configurations/server.md b/docusaurus/docs/cms/configurations/server.md index efecdcdafd..8e2df9e580 100644 --- a/docusaurus/docs/cms/configurations/server.md +++ b/docusaurus/docs/cms/configurations/server.md @@ -11,6 +11,20 @@ tags: - host - port --- +```markdown +--- +title: Server configuration +sidebar_label: Server +description: Strapi offers a single entry point file for its server configuration. +displayed_sidebar: cmsSidebar +tags: + - app keys + - base configuration + - configuration + - cron job + - host + - port +--- # Server configuration @@ -172,3 +186,21 @@ export default ({ env }) => ({ + +## Hostname Configuration in Development + +When running Strapi in a development environment, the resolved hostname will default to `localhost` if the configured `host` in `config/server.js` resolves to a local IP address (`127.0.0.1`, `0.0.0.0`, `::1`, `::`). This ensures that the server URL is correctly constructed for local development. + +For example, if your `config/server.js` looks like this: + +```js +module.exports = ({ env }) => ({ + host: env('HOST', '0.0.0.0'), + port: env.int('PORT', 1337), + app: { + keys: env.array('APP_KEYS'), + }, +}); +``` + +Strapi will now use `http://localhost:1337` as the base URL for the server in development.