From 757bb37f3fe92be5a626aaf4d0a90e6d4969c0e2 Mon Sep 17 00:00:00 2001 From: Filip Sobol Date: Mon, 16 May 2022 11:20:53 +0200 Subject: [PATCH] docs: fix typos in installation guides --- docs/getting-started/configure-integration.md | 2 +- docs/getting-started/configure-magento.md | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/getting-started/configure-integration.md b/docs/getting-started/configure-integration.md index 2ce2233a0..a6799cd81 100644 --- a/docs/getting-started/configure-integration.md +++ b/docs/getting-started/configure-integration.md @@ -25,7 +25,7 @@ npx @vue-storefront/cli init ### 1. Configure environment variables -After installation, the first step is to configure the integration using the environment variables. +After installation, the first step is configuring the integration using the environment variables. 1. Go to the root folder of your project. 2. Make a copy of the `.env.example` file and rename it to `.env`. You can do it manually or use the following command: diff --git a/docs/getting-started/configure-magento.md b/docs/getting-started/configure-magento.md index d0a894fec..122c92853 100644 --- a/docs/getting-started/configure-magento.md +++ b/docs/getting-started/configure-magento.md @@ -20,7 +20,7 @@ cd server ### 1. Get Magento Marketplace access keys -Registry that stores Magento and other third-party packages requires authentication. You'll need to generate access keys in the Magento Marketplace to install them. +Registry that stores Magento and other third-party packages require authentication. You'll need to generate access keys in the Magento Marketplace to install them. Follow the [Get your authentication keys](https://devdocs.magento.com/guides/v2.4/install-gde/prereq/connect-auth.html) guide to generate new access keys. @@ -63,9 +63,9 @@ Finally, copy the file to the container by running the following command: bin/copytocontainer auth.json ``` -### 4. Increse default GraphQL query complexity +### 4. Increase default GraphQL query complexity -By default, Magento 2 allows maximum GraphQL query complexity of 300 and depth of 20 (see [#32427](https://github.com/magento/magento2/issues/32427#issuecomment-860478483)). You need to change these values using the [GraphQL CustomConfig module](https://github.com/caravelx/module-graphql-config), which allows configuring these values in the admin panel. +For security reasons, Magento 2, by default, allows maximum GraphQL query complexity of 300 and depth of 20. You need to change these values using the [GraphQL CustomConfig module](https://github.com/caravelx/module-graphql-config), which allows configuring these values in the admin panel. To install the Magento 2 GraphQL Config module, run the following commands on your Magento installation: @@ -77,11 +77,13 @@ php bin/magento setup:di:compile php bin/magento setup:static-content:deploy ``` -Then go to the admin panel, find the configuration panel of the `GraphQL CustomConfig` module and set: +Then go to the admin panel, find the configuration panel of the `GraphQL CustomConfig` module, and set: - **complexity** to 1500, - **depth** to 20. +For more information, see the [GraphQL security configuration](https://devdocs.magento.com/guides/v2.4/graphql/security-configuration.html) page. + ### 5. Enable CORS You may need to enable CORS origins in your Magento store to accept requests from other domains, e.g., `magento.dev`. In the Magento 2 folder, add the package `graycore/magento2-cors` by running the command below: