@@ -79,7 +79,7 @@ export async function start(startContext: string, options: SWACLIConfig) {
7979 const funcBinary = "func" ;
8080 // serve the api if and only if the user provides a folder via the --api-location flag
8181 if ( isApiLocationExistsOnDisk ) {
82- serveApiCommand = `cd ${ userConfig . apiLocation } && ${ funcBinary } start --cors "*" --port ${ options . apiPort } ` ;
82+ serveApiCommand = `cd " ${ userConfig . apiLocation } " && ${ funcBinary } start --cors "*" --port ${ options . apiPort } ` ;
8383 }
8484 }
8585 }
@@ -121,7 +121,7 @@ export async function start(startContext: string, options: SWACLIConfig) {
121121 const { env } = process ;
122122 const concurrentlyCommands : concurrently . CommandObj [ ] = [
123123 // start the reverse proxy
124- { command : `node ${ path . join ( __dirname , ".." , ".." , "proxy" , "server.js" ) } ` , name : "swa" , env, prefixColor : "gray.dim" } ,
124+ { command : `node " ${ path . join ( __dirname , ".." , ".." , "proxy" , "server.js" ) } " ` , name : "swa" , env, prefixColor : "gray.dim" } ,
125125 ] ;
126126
127127 if ( isApiLocationExistsOnDisk ) {
@@ -134,7 +134,7 @@ export async function start(startContext: string, options: SWACLIConfig) {
134134 if ( startupCommand ) {
135135 concurrentlyCommands . push (
136136 // run an external script, if it's available
137- { command : `cd ${ userConfig ?. appLocation } && ${ startupCommand } ` , name : "run" , env, prefixColor : "gray.dim" }
137+ { command : `cd " ${ userConfig ?. appLocation } " && ${ startupCommand } ` , name : "run" , env, prefixColor : "gray.dim" }
138138 ) ;
139139 }
140140
0 commit comments