Skip to content

How to host server-side scripts within react-app? #4056

@truekonrads

Description

@truekonrads

Is this a bug report?

No

Hello, I have some server side code including sockets.io server compoent that should run in the background. Currently it runs outside as a separate process, but as it's integral to the react app, I would like to host it in same process, listening to a URI (e.g. /socket.io/). I don't want it to be proxied through as in this guide.

Is there a canonical create-react-app way to achieve this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions