I have the following route setup in my ReactJS application:
<code><Route path={`${process.env.REACT_APP_PUBLIC_URL}/:siteid/apply`} element= {<DriverSetup />} />
</code>
<code><Route path={`${process.env.REACT_APP_PUBLIC_URL}/:siteid/apply`} element= {<DriverSetup />} />
</code>
<Route path={`${process.env.REACT_APP_PUBLIC_URL}/:siteid/apply`} element= {<DriverSetup />} />
REACT_APP_PUBLIC_URL is testfiles
In development: I use the url:
https://localhost:3000/testfiles/mydriver/apply
and the page pulls up as expected.
In production running Apache2 in a LAMP environment I use the url:
https://mytestserver.com/testfiles/mydriver/apply
and the page is blank.
It appears the browser loaded the page (Status code 200 on the page get). I’m a bit confused as the code is exactly the same. Is there an Apache setting that I may be missing? Where do I even begin to troubleshoot this?