File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ export async function startDevServer() {
1717 // Apply Rsbuild’s built-in middlewares
1818 app . use ( rsbuildServer . middlewares ) ;
1919
20- const httpServer = app . listen ( rsbuildServer . port , async ( ) => {
20+ const httpServer = app . listen ( rsbuildServer . port , ( ) => {
2121 // Notify Rsbuild that the custom server has started
22- await rsbuildServer . afterListen ( ) ;
22+ rsbuildServer . afterListen ( ) ;
2323 } ) ;
2424
2525 rsbuildServer . connectWebSocket ( { server : httpServer } ) ;
@@ -32,4 +32,4 @@ export async function startDevServer() {
3232 } ;
3333}
3434
35- startDevServer ( process . cwd ( ) ) ;
35+ startDevServer ( ) ;
Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ export async function startDevServer() {
4343 // Apply Rsbuild’s built-in middlewares
4444 app . use ( rsbuildServer . middlewares ) ;
4545
46- const httpServer = app . listen ( rsbuildServer . port , async ( ) => {
46+ const httpServer = app . listen ( rsbuildServer . port , ( ) => {
4747 // Notify Rsbuild that the custom server has started
48- await rsbuildServer . afterListen ( ) ;
48+ rsbuildServer . afterListen ( ) ;
4949 } ) ;
5050
5151 rsbuildServer . connectWebSocket ( { server : httpServer } ) ;
@@ -58,4 +58,4 @@ export async function startDevServer() {
5858 } ;
5959}
6060
61- startDevServer ( process . cwd ( ) ) ;
61+ startDevServer ( ) ;
You can’t perform that action at this time.
0 commit comments