Skip to content

Commit

Permalink
docs: fix typos in installation guides
Browse files Browse the repository at this point in the history
  • Loading branch information
filipsobol authored and bartoszherba committed May 16, 2022
1 parent b9594e9 commit 757bb37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/getting-started/configure-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 6 additions & 4 deletions docs/getting-started/configure-magento.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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:

Expand All @@ -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:
Expand Down

0 comments on commit 757bb37

Please sign in to comment.