File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 6969 options . MapEndpoints ( ) ;
7070} ) ;
7171
72- // Proxy development HMR WebSocket and fallback routes to the Next server
72+ // Proxy HMR WebSocket and fallback routes to Node dev server in Development
7373if ( app . Environment . IsDevelopment ( ) )
7474{
75- // Start the Next.js dev server if the Next.js lockfile does not exist
76- app . RunNodeProcess ( nodeProxy ,
77- lockFile : "../MyApp.Client/dist/lock" ,
78- workingDirectory : "../MyApp.Client" ) ;
79-
75+ app . RunNodeProcess ( nodeProxy , "../MyApp.Client" ) ; // Start Node if not running
8076 app . UseWebSockets ( ) ;
8177 app . MapViteHmr ( nodeProxy ) ;
82- app . MapFallbackToNode ( nodeProxy ) ;
83- Thread . Sleep ( 200 ) ; // Wait for Node to start
78+ app . MapFallbackToNode ( nodeProxy ) ; // Fallback to Node dev server in development
8479}
8580else
8681{
87- // Map fallback to index.html in production (MyApp.Client/dist > wwwroot)
88- app . MapFallbackToFile ( "index.html" ) ;
82+ app . MapFallbackToFile ( "index.html" ) ; // Fallback to index.html in production (MyApp.Client/dist > wwwroot)
8983}
9084
9185app . Run ( ) ;
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <configuration >
3+ <packageSources >
4+ <add key =" ServiceStack MyGet feed" value =" https://www.myget.org/F/servicestack" />
5+ <add key =" nuget.org" value =" https://api.nuget.org/v3/index.json" protocolVersion =" 3" />
6+ </packageSources >
7+ </configuration >
You can’t perform that action at this time.
0 commit comments