Pin Vite to 5173 without an Aspire proxy so AppHost can start.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-20 10:14:26 +03:00
co-authored by Cursor
parent 3bb5d45f10
commit 7851bed14f
4 changed files with 65 additions and 2 deletions
+2 -2
View File
@@ -23,9 +23,9 @@ if (headless)
if (!headless)
{
// Pin the Vite port so `tailscale serve --bg 5173` always targets the client.
// Pin Vite itself to 5173 (no Aspire proxy): Tailscale Serve targets that port.
var client = builder.AddViteApp("client", "../HSchool.Client")
.WithHttpEndpoint(port: 5173, targetPort: 5173)
.WithHttpEndpoint(port: 5173, targetPort: 5173, isProxied: false)
.WithReference(server)
.WaitFor(server);