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

To handle the routes on the client #786

Merged
merged 1 commit into from
Apr 27, 2024
Merged

To handle the routes on the client #786

merged 1 commit into from
Apr 27, 2024

Conversation

dplopezsioux
Copy link
Contributor

To handle the routes on the client, if the user forces the URL on the client side, Express will send the React app to the front-end, and then the application can handle the route in the front-end.

@dplopezsioux
Copy link
Contributor Author

I am using the example configuration, but with react-router, it does not work for me if I force the route in the browser because express only sends the application to the URL "/". I added that configuration to send the HTML to all the URLs so that React can manage the routes in the interface.

To handle the routes on the client, if the user forces the URL on the client side, Express will send the React app to the front-end, and then the application can handle the route in the front-end.
@pmmmwh
Copy link
Owner

pmmmwh commented Apr 27, 2024

Thanks!

@pmmmwh pmmmwh merged commit 654a86d into pmmmwh:main Apr 27, 2024
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants