While testing the Custom React App in IntelliJ IDEA I found that it does not load properly.
It might also not work well when deploying a custom project using this app to production.
To reproduce:
- Configure
OR_CUSTOM_APP_DOCROOT=deployment/build/image/manager/app as env var in the Application run configuration in IntelliJ IDEA
- Build the code using:
./gradlew clean installDist
- Start the manager by running the run configuration in IntelliJ IDEA
- Open the App in your browser by navigating to: http://localhost:8080/custom-react/
The React App does not show, it seems to load files using the / path instead of /custom-react/ see this console output:
The App does work when running it via npm run serve