Skip to content

Commit

Permalink
fix(federation): rebuilded module and re-deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
Stradivario committed Jun 17, 2021
1 parent 3616ef0 commit 05da054
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 3 additions & 0 deletions packages/federation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ Bootstrap(
{ name: 'accounts', url: 'http://localhost:9000/graphql' },
{ name: 'products', url: 'http://localhost:9001/graphql' },
],
apolloServerConfig: {
playground: true,
},
}),
).subscribe(() => console.log('started'));
```
Expand Down
Binary file modified packages/federation/bin/federation-linux
Binary file not shown.
11 changes: 3 additions & 8 deletions packages/federation/bin/federation-linux.js
Original file line number Diff line number Diff line change
Expand Up @@ -43565,7 +43565,7 @@ const apollo_server_1 = __webpack_require__(731);
const auth_data_source_1 = __webpack_require__(3177);
const tokens_1 = __webpack_require__(432);
let FederationModule = FederationModule_1 = class FederationModule {
static forRoot({ port, serviceList, willSendRequest, context, }) {
static forRoot({ port, serviceList, willSendRequest, context, apolloServerConfig, }) {
return {
module: FederationModule_1,
providers: [
Expand All @@ -43586,14 +43586,9 @@ let FederationModule = FederationModule_1 = class FederationModule {
{
provide: tokens_1.ApolloServerInternal,
deps: [tokens_1.ApolloGatewayInternal],
useFactory: (gateway) => new apollo_server_1.ApolloServer({
gateway,
engine: false,
context: context
useFactory: (gateway) => new apollo_server_1.ApolloServer(Object.assign({ gateway, engine: false, context: context
? context
: ({ req: { headers } }) => ({ headers }),
subscriptions: false,
}),
: ({ req: { headers } }) => ({ headers }), subscriptions: false }, apolloServerConfig)),
},
{
provide: 'Listen',
Expand Down

0 comments on commit 05da054

Please sign in to comment.