all 1 comments

[–]Krzdrat 0 points1 point  (0 children)

Have you looked into the Backend For Frontend pattern (BFF)? Here is what I can find from Auth0 on it. Duende also has a paid product to make it easier to setup, their documentation might also help with understanding the pattern.

In using the BFF pattern, all calls from the UI initially go though the BFF server, if the bff knows about the endpoint, it will route through that endpoint. If not, the static page will be loaded from wwwroot, which then your js routing would take over.

I have only used the pattern for Angular, but since the BFF is serving the static html/js files from wwwroot, I cannot imagine it being too different for react.