Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPA proxy development server launch options #54289

Open
1 task done
laingsimon opened this issue Mar 1, 2024 · 0 comments
Open
1 task done

SPA proxy development server launch options #54289

laingsimon opened this issue Mar 1, 2024 · 0 comments
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates

Comments

@laingsimon
Copy link

laingsimon commented Mar 1, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

The SPA development proxy can launch the development server multiple times, if the server doesn't respond quickly enough. This can happen infrequently when certificates are being re-created after expiry.

The result is the first server is running and the process becomes orphaned.
A new process is created and is unable to start 'normally' as resources (e.g. ports) are in use by the first process.

--

In addition, both processes appear in-front of the IDE, which takes focus away from the IDE during debugging.

Describe the solution you'd like

There should be the means of configuring the SPA proxy back-end to either wait or kill and re-launch the process. I propose that this is configurable to ensure anyone using the current functionality is not impacted. In cases where the process can take longer than the timeout, a user/developer can configure their project to behave differently.

In addition, it would be useful to be able to - by configuration - launch the command window (where the server back-end is running) in a background/minimised window to reduce the impact on development.

Additional context

See additional analysis here: laingsimon/courage_scores#770

A potential change is submitted here to aid with discussion of this topic: release/6.0...laingsimon:aspnetcore:feature/54289-spa-proxy-launch-options

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

No branches or pull requests

1 participant