Skip to content

A way to instantiate a resource that must be a singleton inside a dev environment #18264

Closed
@sapphi-red

Description

@sapphi-red

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 pressing r + enter), the next instantiation happens before devEnv::close is called. In the end the server crashes with address 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.

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions