From 1f64b5167c726c904d8b9b50e88fb3734ad2cda9 Mon Sep 17 00:00:00 2001 From: "dev-docs-github-app[bot]" <178952281+dev-docs-github-app[bot]@users.noreply.github.com> Date: Thu, 17 Apr 2025 03:55:42 +0000 Subject: [PATCH 1/6] Create file --- dev-docs.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 dev-docs.json diff --git a/dev-docs.json b/dev-docs.json new file mode 100644 index 0000000000..ad795ee991 --- /dev/null +++ b/dev-docs.json @@ -0,0 +1,9 @@ +{ + "gitHubApp": { + "approvalWorkflow": true, + "userDocsWorkflows": [ + "generateUserDocs" + ], + "issues": true + } +} \ No newline at end of file From 4e377779011d92e6f9b0d21449935fafcb366c85 Mon Sep 17 00:00:00 2001 From: avb-dev-docs <123575048+avb-dev-docs@users.noreply.github.com> Date: Wed, 16 Apr 2025 20:57:34 -0700 Subject: [PATCH 2/6] Update dev-docs.json --- dev-docs.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev-docs.json b/dev-docs.json index ad795ee991..41cc331aa8 100644 --- a/dev-docs.json +++ b/dev-docs.json @@ -5,5 +5,6 @@ "generateUserDocs" ], "issues": true - } -} \ No newline at end of file + }, + "aiProvider": "google" +} From 2d5e3350fbc20bd1beed8a494ceaabf20e7965c3 Mon Sep 17 00:00:00 2001 From: avb-dev-docs <123575048+avb-dev-docs@users.noreply.github.com> Date: Wed, 16 Apr 2025 21:18:09 -0700 Subject: [PATCH 3/6] Update dev-docs.json --- dev-docs.json | 7 ------- 1 file changed, 7 deletions(-) diff --git a/dev-docs.json b/dev-docs.json index 41cc331aa8..e1820254da 100644 --- a/dev-docs.json +++ b/dev-docs.json @@ -1,10 +1,3 @@ { - "gitHubApp": { - "approvalWorkflow": true, - "userDocsWorkflows": [ - "generateUserDocs" - ], - "issues": true - }, "aiProvider": "google" } From bc3f683baa7e5d64878f2d1c5301f7c16a3bf6dc Mon Sep 17 00:00:00 2001 From: avb-dev-docs <123575048+avb-dev-docs@users.noreply.github.com> Date: Wed, 16 Apr 2025 21:52:22 -0700 Subject: [PATCH 4/6] Update dev-docs.json --- dev-docs.json | 1 - 1 file changed, 1 deletion(-) diff --git a/dev-docs.json b/dev-docs.json index e1820254da..2c63c08510 100644 --- a/dev-docs.json +++ b/dev-docs.json @@ -1,3 +1,2 @@ { - "aiProvider": "google" } From fc0999790bcab57a7421954b5bb3b76e211d1c3b Mon Sep 17 00:00:00 2001 From: "dev-docs-github-app-dev[bot]" <178211755+dev-docs-github-app-dev[bot]@users.noreply.github.com> Date: Thu, 17 Apr 2025 04:53:07 +0000 Subject: [PATCH 5/6] Update file --- docusaurus/docs/cms/configurations/server.md | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) 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. From ee9880cb512a7922337142ec8407450104ff3e44 Mon Sep 17 00:00:00 2001 From: "dev-docs-github-app-dev[bot]" <178211755+dev-docs-github-app-dev[bot]@users.noreply.github.com> Date: Thu, 17 Apr 2025 04:53:52 +0000 Subject: [PATCH 6/6] Update file --- docusaurus/docs/cms/configurations/plugins.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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