Apply Patches
Apply patches for Subrequests and Decoupled Router modules
In a future release, these patches will NOT be required for using Next.js and GraphQL.
At the time of this writing, there are two patches we need to wire everything together.
- Open your Drupal
composer.json
file. - Add the following patches under
"extra"
.
composer.json
"extra": { "patches": { "drupal/subrequests": { "Get same results on different request": "https://www.drupal.org/files/issues/2019-07-18/change_request_type-63049395-09.patch" }, "drupal/decoupled_router": { "Unable to resolve path on node in other language than default": "https://www.drupal.org/files/issues/2021-05-05/3111456-34.patch" } },}
- Run the following command:
composer require cweagans/composer-patches
You can read more about the patches here: