File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,15 @@ export function serveCommand(): (stepParams: StepParams) => Promise<void> {
2323 const start = Date . now ( )
2424 await handler ( request , response , {
2525 public : config . output . path ?? "build" ,
26+ cleanUrls : [ "/" , "!/*" ] ,
2627 } )
2728 console . log ( request . method , request . url )
2829 console . log (
2930 "Returned" ,
3031 ( response . statusCode === 200 ? chalk . green : chalk . red ) ( response . statusCode ) ,
3132 "in" ,
3233 Date . now ( ) - start ,
33- "ms"
34+ "ms" ,
3435 )
3536 }
3637
@@ -40,8 +41,8 @@ export function serveCommand(): (stepParams: StepParams) => Promise<void> {
4041 key,
4142 cert,
4243 } ,
43- requestHandler
44- )
44+ requestHandler ,
45+ )
4546 : http . createServer ( requestHandler )
4647
4748 server . listen ( port , ( ) => {
You can’t perform that action at this time.
0 commit comments