@@ -18,21 +18,21 @@ async function main() {
18
18
console . log ( '[exposes] starting static servers for exposes...' ) ;
19
19
const pServe = run ( 'pnpm' , [ '--filter' , '"federated-css-react-ssr_expose-*"' , '-r' , 'run' , 'serve' ] ) ;
20
20
21
- // Wait for all expose ports to be reachable before proceeding
21
+ // Wait for remoteEntry.js endpoints (server side) to be reachable before proceeding
22
22
await waitOn ( {
23
23
resources : [
24
- 'http://localhost:3001' ,
25
- 'http://localhost:3002' ,
26
- 'http://localhost:3003' ,
27
- 'http://localhost:3004' ,
28
- 'http://localhost:3005' ,
29
- 'http://localhost:3006' ,
30
- 'http://localhost:3007' ,
24
+ 'http://localhost:3001/server/remoteEntry.js ' ,
25
+ 'http://localhost:3002/server/remoteEntry.js ' ,
26
+ 'http://localhost:3003/server/remoteEntry.js ' ,
27
+ 'http://localhost:3004/server/remoteEntry.js ' ,
28
+ 'http://localhost:3005/server/remoteEntry.js ' ,
29
+ 'http://localhost:3006/server/remoteEntry.js ' ,
30
+ 'http://localhost:3007/server/remoteEntry.js ' ,
31
31
] ,
32
32
timeout : 480000 ,
33
33
validateStatus : s => s >= 200 && s < 500 ,
34
34
} ) ;
35
- console . log ( '[exposes] all expose ports are up.' ) ;
35
+ console . log ( '[exposes] all server remoteEntry.js endpoints are up.' ) ;
36
36
process . on ( 'SIGINT' , ( ) => pServe . kill ( 'SIGINT' ) ) ;
37
37
process . on ( 'SIGTERM' , ( ) => pServe . kill ( 'SIGTERM' ) ) ;
38
38
// keep process alive
0 commit comments