Skip to content

Commit d083ee1

Browse files
committed
Update mockttp to limit standalone server to the local interface
1 parent 55da43b commit d083ee1

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"graphql": "^14.0.2",
3434
"graphql-yoga": "^1.16.7",
3535
"lodash": "^4.17.11",
36-
"mockttp": "^0.12.3-updategraphql",
36+
"mockttp": "^0.12.4",
3737
"rimraf": "^2.6.2",
3838
"tslib": "^1.9.3"
3939
},

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ export async function runHTK(options: {
5454
https: httpsConfig
5555
}
5656
});
57-
standalone.start();
57+
standalone.start({
58+
port: 45456,
59+
host: 'localhost'
60+
});
5861

5962
// Start a HTK server
6063
const htkServer = new HttpToolkitServer({

0 commit comments

Comments
 (0)