Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-1472

Automatically find host, port and context root on frontend for the backend - without any explicit configuration

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • None

      Continues on PLANNER-1471

      Current status of the default, non-configured behaviour:

      • We hardcode localhost:8080 so when the frontend in development runs on localhost:3000, it just works.

      Proposal A)

      • By default, the frontend must use the host, port and context root of where it got the js file
        • So only if those properties are not overridden that local env file.
        • So the frontend should not hardcode localhost:8080/, unless the host.equals("localhost")

      Proposal B)

        1. hostProb1.png
          hostProb1.png
          52 kB
        2. hostProb2.png
          hostProb2.png
          55 kB

              jlocker Jiří Locker (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: