Skip to content

Custom React App does not load when running manager using OR_CUSTOM_APP_DOCROOT #49

@wborn

Description

@wborn

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:

  1. Configure OR_CUSTOM_APP_DOCROOT=deployment/build/image/manager/app as env var in the Application run configuration in IntelliJ IDEA
  2. Build the code using: ./gradlew clean installDist
  3. Start the manager by running the run configuration in IntelliJ IDEA
  4. 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:

Image

The App does work when running it via npm run serve

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugError or issue in the system

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions