DEV Community

Discussion on: Run React Frontend and SpringBoot Backend on the same port and Package them as a single artifact !!

Collapse
 
peterkronenberg profile image
Peter Kronenberg • Edited

Hope you don't mind some questions. If there is a better place to post them, let me know. I got your demo working. But when I try it with my React app, I can't get anything other than index.html to show. If I just enter localhost:8080, I get my default React page. If I enter localhost:8080/index.html, I get the generic index.html with no dynamic content. (tried to attached screenshot, but it doesn't work)
If I enter any of my other routes, such as localhost:8080/login, I get the Whitelabel error page. Any suggestions? Do you have a sample that has anything other than the default React app?

Note that if I browse directly to React at localhost:3000, the client responds properly

Collapse
 
shikharajpoot13 profile image
SHIKHA RAJPOOT

Hey Peter, did you find the anwser to your question? If yes please do share the solution.