Skip to content

Commit

Permalink
fix(cli): respect builtMeshFactoryName in createBuiltMeshHTTPHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Sep 12, 2022
1 parent e4cfd08 commit f95e19b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/chatty-camels-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-mesh/cli': patch
---

Fix createBuiltMeshHTTPHandler params
4 changes: 2 additions & 2 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export function getMeshOptions() {
export function createBuiltMeshHTTPHandler() {
return createMeshHTTPHandler({
baseDir,
getBuiltMesh,
getBuiltMesh: ${cliParams.builtMeshFactoryName},
rawServeConfig: ${JSON.stringify(meshConfig.config.serve)},
})
}
Expand Down Expand Up @@ -404,7 +404,7 @@ export function createBuiltMeshHTTPHandler() {
export function createBuiltMeshHTTPHandler() {
return createMeshHTTPHandler({
baseDir,
getBuiltMesh,
getBuiltMesh: ${cliParams.builtMeshFactoryName},
rawServeConfig: ${JSON.stringify(meshConfig.config.serve)},
})
}
Expand Down

0 comments on commit f95e19b

Please sign in to comment.