Skip to content

Commit a3985c9

Browse files
committed
Switch to new RunNodeProcess
1 parent 7caf451 commit a3985c9

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

MyApp.Client/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./dist/types/routes.d.ts";
3+
import "./dist/dev/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

MyApp/Program.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,9 @@
7171
// Proxy development HMR WebSocket and fallback routes to the Next server
7272
if (app.Environment.IsDevelopment())
7373
{
74-
// Start the Next.js dev server if the Next.js lockfile does not exist
75-
app.RunNodeProcess(nodeProxy,
76-
lockFile: "../MyApp.Client/dist/lock",
77-
workingDirectory: "../MyApp.Client");
78-
app.MapNextHmr(nodeProxy);
74+
app.RunNodeProcess(nodeProxy, "../MyApp.Client"); // Start Node if not running
75+
app.UseWebSockets();
76+
app.MapNextHmr(nodeProxy); // Proxy HMR WebSocket requests
7977
}
8078

8179
app.MapFallbackToNode(nodeProxy);

NuGet.Config

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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>

0 commit comments

Comments
 (0)