@@ -35,11 +35,7 @@ export default function registerCommand(program: Command) {
3535 . option ( "-a, --app-location <path>" , "the folder containing the source code of the front-end application" , DEFAULT_CONFIG . appLocation )
3636 . option ( "-i, --api-location <path>" , "the folder containing the source code of the API application" , DEFAULT_CONFIG . apiLocation )
3737 . option ( "-O, --output-location <path>" , "the folder containing the built source of the front-end application" , DEFAULT_CONFIG . outputLocation )
38- . option (
39- "-D, --app-devserver-url <url>" ,
40- "connect to the app dev server at this URL instead of using output location" ,
41- DEFAULT_CONFIG . appDevserverUrl
42- )
38+ . option ( "-D, --app-devserver-url <url>" , "connect to the app dev server at this URL instead of using output location" , DEFAULT_CONFIG . appDevserverUrl )
4339 . option ( "-is, --api-devserver-url <url>" , "connect to the api server at this URL instead of using api location" , DEFAULT_CONFIG . apiDevserverUrl )
4440 . option < number > ( "-j, --api-port <apiPort>" , "the API server port passed to `func start`" , parsePort , DEFAULT_CONFIG . apiPort )
4541 . option ( "-q, --host <host>" , "the host address to use for the CLI dev server" , DEFAULT_CONFIG . host )
@@ -267,7 +263,7 @@ export async function start(options: SWACLIConfig) {
267263
268264 // serve the api if and only if the user provides a folder via the --api-location flag
269265 if ( isApiLocationExistsOnDisk ) {
270- serveApiCommand = `cd "${ userWorkflowConfig . apiLocation } " && ${ funcBinary } start --cors "*" --port ${ apiPort } ${ funcArgs ?? "" } ` ;
266+ serveApiCommand = `cd "${ userWorkflowConfig . apiLocation } " && " ${ funcBinary } " start --cors "*" --port ${ apiPort } ${ funcArgs ?? "" } ` ;
271267 }
272268 }
273269 }
0 commit comments