- 
                Notifications
    You must be signed in to change notification settings 
- Fork 132
Closed as not planned
Labels
Staleawaiting responseWaiting for the author of the issue to provide more information or answer a questionWaiting for the author of the issue to provide more information or answer a question
Milestone
Description
Page URL
Describe the issue
Vite defaults their dev server to port 5173 (and then increments it if its taken) - when you follow the docs there is no guidance about setting targetPort or anything. The default endpoint handled by Aspire spins forever then fails because it doesn't point to 5173 (which works fine) -
 
var frontend = builder.AddViteApp("frontend", "../frontend", packageManager: "pnpm")
    .WithPnpmPackageInstallation()
    .WithReference(ratingsApi)
    .WithExternalHttpEndpoints();
Suggestion
We should either handle that in the Vite extension by default or add
.WithHttpEndpoint(targetPort: 5173)
to the docs.
Additional context
No response
Help us help you
No, just wanted to report this
TWolversonReply
Metadata
Metadata
Assignees
Labels
Staleawaiting responseWaiting for the author of the issue to provide more information or answer a questionWaiting for the author of the issue to provide more information or answer a question