Use new config internally in Metro

Summary: Change the internals of Metro to use the new configuration instead of `ServerOptions`.

Reviewed By: rafeca

Differential Revision: D8734685

fbshipit-source-id: 1215f799419fcaa0e5fb7814683da1cbba96795c
This commit is contained in:
Ives van Hoorne
2018-07-25 05:44:42 -07:00
committed by Facebook Github Bot
parent a32620dc3b
commit aaf797ad67
3 changed files with 3 additions and 10 deletions

View File

@@ -60,8 +60,7 @@ async function runServer(args: Args, config: ConfigT) {
config.server.enhanceMiddleware = middleware =>
middlewareManager.getConnectInstance().use(middleware);
const serverInstance = await Metro.runServer({
config,
const serverInstance = await Metro.runServer(config, {
host: args.host,
secure: args.https,
secureCert: args.cert,