From 2050c7d6cef3081b894cb4988ebcd6381f26bc6e Mon Sep 17 00:00:00 2001 From: Derrick Mehaffy Date: Fri, 1 Nov 2024 11:48:05 -0700 Subject: [PATCH] enhancement: move cloud custom provider config warnings up --- docusaurus/docs/cloud/advanced/database.md | 9 ++++----- docusaurus/docs/cloud/advanced/email.md | 10 +++++----- docusaurus/docs/cloud/advanced/upload.md | 8 ++++---- docusaurus/package.json | 2 +- 4 files changed, 14 insertions(+), 15 deletions(-) diff --git a/docusaurus/docs/cloud/advanced/database.md b/docusaurus/docs/cloud/advanced/database.md index c5d7def61f..27e5648796 100644 --- a/docusaurus/docs/cloud/advanced/database.md +++ b/docusaurus/docs/cloud/advanced/database.md @@ -30,9 +30,12 @@ While it's possible to use an external database with Strapi Cloud, you should do - Strapi can't provide security or support with external databases used with Strapi Cloud. ::: - ## Configuration +:::caution +To ensure a smooth deployment, it is recommended to not change the names of the environment variables. +::: + The project `./config/database.js` or `./config/database.ts` file must match the configuration found in the [environment variables in database configurations](https://docs.strapi.io/dev-docs/configurations/database#environment-variables-in-database-configurations) section. Before pushing changes, add environment variables to the Strapi Cloud project: @@ -54,10 +57,6 @@ Before pushing changes, add environment variables to the Strapi Cloud project: 4. Click **Save**. -:::caution -To ensure a smooth deployment, it is recommended to not change the names of the environment variables. -::: - ## Deployment To deploy the project and utilize the external database, push the changes from earlier. This will trigger a rebuild and new deployment of the Strapi Cloud project. diff --git a/docusaurus/docs/cloud/advanced/email.md b/docusaurus/docs/cloud/advanced/email.md index b8613a5e26..c4e40eafb6 100644 --- a/docusaurus/docs/cloud/advanced/email.md +++ b/docusaurus/docs/cloud/advanced/email.md @@ -42,7 +42,11 @@ Using either `npm` or `yarn`, install the provider plugin in your local Strapi p ### Configure the Provider -In your Strapi project, create a `./config/env/production/plugins.js` or `./config/env/production/plugins.ts` file with the following content: +:::caution +The file structure must match the below path **exactly**, or the configuration will not be applied to Strapi Cloud. +::: + +To configure a 3rd-party email provider in your Strapi project, create or edit the plugins configuration file for your production environment `./config/env/production/plugins.js|ts` by adding upload configuration options as follows: @@ -84,10 +88,6 @@ export default ({ env }) => ({ -:::caution -The file structure must match the above path exactly, or the configuration will not be applied to Strapi Cloud. -::: - Each provider will have different configuration settings available. Review the respective entry for that provider in the [Marketplace](https://market.strapi.io/providers). **Example:** diff --git a/docusaurus/docs/cloud/advanced/upload.md b/docusaurus/docs/cloud/advanced/upload.md index 6ddc24043a..b61dbbe5f8 100644 --- a/docusaurus/docs/cloud/advanced/upload.md +++ b/docusaurus/docs/cloud/advanced/upload.md @@ -44,6 +44,10 @@ Using either `npm` or `yarn`, install the provider plugin in your local Strapi p ### Configure the Provider +:::caution +The file structure must match the below path **exactly**, or the configuration will not be applied to Strapi Cloud. +::: + To configure a 3rd-party upload provider in your Strapi project, create or edit the plugins configuration file for your production environment `./config/env/production/plugins.js|ts` by adding upload configuration options as follows: @@ -85,10 +89,6 @@ upload: { -:::caution -The file structure must match the above path exactly, or the configuration will not be applied to Strapi Cloud. -::: - Each provider will have different configuration settings available. Review the respective entry for that provider in the [Marketplace](https://market.strapi.io/providers). **Example:** diff --git a/docusaurus/package.json b/docusaurus/package.json index f9da5342b1..90ef812af7 100644 --- a/docusaurus/package.json +++ b/docusaurus/package.json @@ -51,6 +51,6 @@ ] }, "engines": { - "node": ">=16.14 <20" + "node": ">=16.14 <=20" } }