You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Page URL
https://learn.microsoft.com/en-us/dotnet/aspire/community-toolkit/hosting-nodejs-extensions?tabs=dotnet-cli%2Cyarn#run-vite-apps
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) -
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
The text was updated successfully, but these errors were encountered: