Skip to content

Commit cd487e2

Browse files
authored
fix: update apply patches documentation (#815)
1 parent 1251912 commit cd487e2

File tree

2 files changed

+16
-30
lines changed

2 files changed

+16
-30
lines changed

www/content/tutorials/graphql/apply-patches.mdx

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,35 @@ weight: 30
55
group: Quick Start (GraphQL)
66
---
77

8+
At the time of this writing, a patch is required in order to use multilingual features such as translation.
9+
810
<Callout>
911

10-
In a future release, these patches will NOT be required for using Next.js and GraphQL.
12+
**Note:** If you're not using multilingual features such as translation, you can skip this step.
1113

1214
</Callout>
1315

14-
At the time of this writing, there are two patches we need to wire everything together.
15-
1616
1. Open your Drupal `composer.json` file.
17-
2. Add the following patches under `"extra"`.
17+
2. Add the following patch under `"extra"`.
1818

1919
```json title=composer.json
2020
"extra": {
2121
// highlight-start
2222
"patches": {
23-
"drupal/subrequests": {
24-
"Get same results on different request": "https://www.drupal.org/files/issues/2019-07-18/change_request_type-63049395-09.patch"
25-
},
2623
"drupal/decoupled_router": {
27-
"Unable to resolve path on node in other language than default": "https://www.drupal.org/files/issues/2022-11-30/decouple_router-3111456-resolve-language-issue-58.patch"
24+
"Unable to resolve path on node in other language than default": "https://www.drupal.org/files/issues/2024-10-22/decoupled_router-3111456-resolve-langcode-issue-78--external-redirects.patch"
2825
}
2926
},
3027
// highlight-end
3128
}
3229
```
3330

34-
<Callout>
35-
36-
**Note:** If you're not using multilingual features such as translation, you can skip the second patch.
37-
38-
</Callout>
39-
4031
3. Run the following command:
4132

4233
```sh
4334
composer require cweagans/composer-patches
4435
```
4536

46-
You can read more about the patches here:
37+
You can read more about the patch here:
4738

48-
1. https://www.drupal.org/project/subrequests/issues/3049395
4939
2. https://www.drupal.org/project/decoupled_router/issues/3111456

www/content/tutorials/quick-start/apply-patches.mdx

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,35 @@ weight: 30
55
group: Quick Start
66
---
77

8-
At the time of this writing, there are two patches we need to wire everything together.
8+
At the time of this writing, a patch is required in order to use multilingual features such as translation.
9+
10+
<Callout>
11+
12+
**Note:** If you're not using multilingual features such as translation, you can skip this step.
13+
14+
</Callout>
915

1016
1. Open your Drupal `composer.json` file.
11-
2. Add the following patches under `"extra"`.
17+
2. Add the following patch under `"extra"`.
1218

1319
```json title=composer.json
1420
"extra": {
1521
// highlight-start
1622
"patches": {
17-
"drupal/subrequests": {
18-
"Get same results on different request": "https://www.drupal.org/files/issues/2019-07-18/change_request_type-63049395-09.patch"
19-
},
2023
"drupal/decoupled_router": {
21-
"Unable to resolve path on node in other language than default": "https://www.drupal.org/files/issues/2022-11-30/decouple_router-3111456-resolve-language-issue-58.patch"
24+
"Unable to resolve path on node in other language than default": "https://www.drupal.org/files/issues/2024-10-22/decoupled_router-3111456-resolve-langcode-issue-78--external-redirects.patch"
2225
}
2326
},
2427
// highlight-end
2528
}
2629
```
2730

28-
<Callout>
29-
30-
**Note:** If you're not using multilingual features such as translation, you can skip the second patch.
31-
32-
</Callout>
33-
3431
3. Run the following command:
3532

3633
```sh
3734
composer require cweagans/composer-patches
3835
```
3936

40-
You can read more about the patches here:
37+
You can read more about the patch here:
4138

42-
1. https://www.drupal.org/project/subrequests/issues/3049395
4339
2. https://www.drupal.org/project/decoupled_router/issues/3111456

0 commit comments

Comments
 (0)