Skip to content

Allow hot reload when using the express server to display the client #3

@apolopena

Description

@apolopena

Problem this feature will solve

Currently hot reload only works on port 3000 and not on port 7777

Hot reload works when the react client is using the CRA dev server but doesnt work when the client is plugged into the actual Express server (such as on port 7777)

Background

Proposed Solution

Implment a hot reload system for the port that the Express server is running. By default this is 7777

Constraints and Assumptions

<! -- Any constraints and/or assumption relevant for the development and use of this feature? -->

Alternatives or Workarounds

Assuming you are using the default Express Server port 7777:

  1. Save changes in a .tsx src file
  2. Rebuild files: In /client run: yarn run build
  3. Refresh the preview browser for port 7777 by clicking the button or running: op -7777 from the project root.

Additional context

Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions