Pin Vite to 5173 without an Aspire proxy so AppHost can start.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user