From 70246693744626603b9d7705f1e6c376a936728a Mon Sep 17 00:00:00 2001 From: Dominic Saadi Date: Wed, 14 Feb 2024 13:20:17 -0800 Subject: [PATCH] fix(server): pass options through to api server --- packages/cli/src/commands/serveBothHandler.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/cli/src/commands/serveBothHandler.js b/packages/cli/src/commands/serveBothHandler.js index 28b79e7ef416..2f3e32f78956 100644 --- a/packages/cli/src/commands/serveBothHandler.js +++ b/packages/cli/src/commands/serveBothHandler.js @@ -80,11 +80,10 @@ export const bothServerFileHandler = async (argv) => { } export const bothSsrRscServerHandler = async (argv) => { - // TODO Allow specifying port, socket and apiRootPath const apiPromise = apiServerHandler({ - ...argv, - port: 8911, - apiRootPath: '/', + apiRootPath: argv.apiRootPath, + host: argv.apiHost, + port: argv.apiPort, }) // TODO More gracefully handle Ctrl-C