From 047cf841f2b9f45baf0b20f7ea94477f5f245e8a Mon Sep 17 00:00:00 2001 From: nns Date: Tue, 21 Apr 2026 15:37:05 +0500 Subject: [PATCH] fix: pin API dev port to 5081 (match Vite proxy config) Default launchSettings.json from `dotnet new web` picked random port 5039, which doesn't match the Vite proxy target http://localhost:5081, so the React app can't reach /connect/token during login. - Fix http profile to 5081 (HTTPS to 5443) - Remove IIS Express profile (Mac-only dev, not needed) - Disable launchBrowser (we run Web separately) Co-Authored-By: Claude Opus 4.7 (1M context) --- .../Properties/launchSettings.json | 25 ++++--------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/src/food-market.api/Properties/launchSettings.json b/src/food-market.api/Properties/launchSettings.json index 9f8c4d8..6501aae 100644 --- a/src/food-market.api/Properties/launchSettings.json +++ b/src/food-market.api/Properties/launchSettings.json @@ -1,19 +1,11 @@ -{ +{ "$schema": "http://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:30851", - "sslPort": 44329 - } - }, "profiles": { "http": { "commandName": "Project", "dotnetRunMessages": true, - "launchBrowser": true, - "applicationUrl": "http://localhost:5039", + "launchBrowser": false, + "applicationUrl": "http://localhost:5081", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } @@ -21,15 +13,8 @@ "https": { "commandName": "Project", "dotnetRunMessages": true, - "launchBrowser": true, - "applicationUrl": "https://localhost:7275;http://localhost:5039", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, + "launchBrowser": false, + "applicationUrl": "https://localhost:5443;http://localhost:5081", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }