Command to run rover:
rover dev --supergraph-config ./src/config-supergraph.yaml
/src/config-supergraph.yaml
:
federation_version: =2.5.3
include_subgraph_errors:
all: true
subgraphs:
sub1:
schema:
subgraph_url: http://127.0.0.1:3001/graphql
sub2:
schema:
subgraph_url: http://127.0.0.1:3002/graphql
headers:
all:
request:
- propagate:
matching: .*
console.log(req.headers)
from subgraph:
{
"content-type": "application/json",
"accept": "application/json, application/graphql-response+json",
"accept-encoding": "gzip, br, deflate",
"host": "127.0.0.1:3001",
"content-length": "109"
}
This works fine when using cloud router/supergraph, with the same router config settings (minus routing urls of course). Only local dev with rover/router does not work. I don’t understand.