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() {
17
17
// Apply Rsbuild’s built-in middlewares
18
18
app . use ( rsbuildServer . middlewares ) ;
19
19
20
- const httpServer = app . listen ( rsbuildServer . port , async ( ) => {
20
+ const httpServer = app . listen ( rsbuildServer . port , ( ) => {
21
21
// Notify Rsbuild that the custom server has started
22
- await rsbuildServer . afterListen ( ) ;
22
+ rsbuildServer . afterListen ( ) ;
23
23
} ) ;
24
24
25
25
rsbuildServer . connectWebSocket ( { server : httpServer } ) ;
@@ -32,4 +32,4 @@ export async function startDevServer() {
32
32
} ;
33
33
}
34
34
35
- startDevServer ( process . cwd ( ) ) ;
35
+ startDevServer ( ) ;
Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ export async function startDevServer() {
43
43
// Apply Rsbuild’s built-in middlewares
44
44
app . use ( rsbuildServer . middlewares ) ;
45
45
46
- const httpServer = app . listen ( rsbuildServer . port , async ( ) => {
46
+ const httpServer = app . listen ( rsbuildServer . port , ( ) => {
47
47
// Notify Rsbuild that the custom server has started
48
- await rsbuildServer . afterListen ( ) ;
48
+ rsbuildServer . afterListen ( ) ;
49
49
} ) ;
50
50
51
51
rsbuildServer . connectWebSocket ( { server : httpServer } ) ;
@@ -58,4 +58,4 @@ export async function startDevServer() {
58
58
} ;
59
59
}
60
60
61
- startDevServer ( process . cwd ( ) ) ;
61
+ startDevServer ( ) ;
You can’t perform that action at this time.
0 commit comments