Skip to content

Commit 06fc236

Browse files
committed
Update dev workflow
1 parent a595a40 commit 06fc236

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

MyApp/Program.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,12 @@
7373
// Proxy development HMR WebSocket and fallback routes to the Next server
7474
if (app.Environment.IsDevelopment())
7575
{
76-
app.MapNextHmr(nodeProxy);
77-
7876
// Start the Next.js dev server if the Next.js lockfile does not exist
79-
"../MyApp.Client/dist".AssertDir();
8077
app.RunNodeProcess(nodeProxy,
8178
lockFile: "../MyApp.Client/dist/lock",
8279
workingDirectory: "../MyApp.Client");
8380

81+
app.MapNextHmr(nodeProxy);
8482
app.MapFallbackToNode(nodeProxy);
8583
}
8684
else

MyApp/Properties/launchSettings.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"commandName": "Project",
1414
"dotnetRunMessages": true,
1515
"launchBrowser": true,
16-
"launchUrl": "metadata",
1716
"applicationUrl": "https://localhost:5001",
1817
"environmentVariables": {
1918
"ASPNETCORE_ENVIRONMENT": "Development"
@@ -23,7 +22,7 @@
2322
"commandName": "Project",
2423
"dotnetRunMessages": true,
2524
"launchBrowser": true,
26-
"launchUrl": "metadata",
25+
"launchUrl": "",
2726
"applicationUrl": "https://localhost:5001;http://localhost:5000",
2827
"environmentVariables": {
2928
"ASPNETCORE_ENVIRONMENT": "Development"
@@ -32,11 +31,9 @@
3231
"IIS Express": {
3332
"commandName": "IISExpress",
3433
"launchBrowser": true,
35-
"launchUrl": "metadata",
3634
"environmentVariables": {
3735
"ASPNETCORE_ENVIRONMENT": "Development"
3836
}
3937
}
4038
}
41-
}
42-
39+
}

0 commit comments

Comments
 (0)