diff --git a/local-cli/server/runServer.js b/local-cli/server/runServer.js index bad3be828d1683..419a014e2e570a 100644 --- a/local-cli/server/runServer.js +++ b/local-cli/server/runServer.js @@ -58,6 +58,8 @@ async function runServer(args: Args, config: ConfigT) { config.server.port = args.port; config.reporter = reporter; config.resetCache = args.resetCache; + config.projectRoot = args.projectRoot; + config.watchFolders = args.watchFolders.slice(0); config.server.enhanceMiddleware = middleware => middlewareManager.getConnectInstance().use(middleware);