Closed
Description
Description
I noticed that we have a same problem with #12734 if a different server (e.g. miniflare) is used in DevEnvironment.
When restarting the server (by editing the config or pressingr + enter
), the next instantiation happens beforedevEnv::close
is called. In the end the server crashes withaddress already in use
error caused by the different server.
#16358 (comment)
configureServer
has the same problem: #17285
Suggested solution
Made two PRs with different approach.
feat: add isRestart for environment #18262feat: addenvironment::restart
#18353- feat: add
environment::listen
#18263
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.