Skip to content

[Dev UI] Allow to expose dev-ui on other context than / #48683

@cmarchand

Description

@cmarchand

Description

Using virtual dev-env like Coder allows to code / run Quarkus applications. But Dev-Ui is not usable for 2 reasons :

  • dev-ui is limited to localhost : this can be changed with quarkus.dev-ui.hosts
  • dev-ui is exposed on / context-root

In coder, when one choose a port-forwarding to expose 8080 outside of dev-env, port is exposed on an URL like https://.../.../.../apps/code-server/proxy/8080/ ; if I add q/dev-ui to this URL, I can load index.html file, but it references js files with an absolute context :

  • /q/_static/es-module-shims/2.0.10/dist/es-module-shims.js
  • /q/dev-ui/icon/font-awesome.js
  • etc...

If this resources were loaded with a relative path, this would allow to load dev-ui from another context-root :

  • ../_static/es-module-shims/2.0.10/dist/es-module-shims.js
  • ./icon/font-awesome.js
  • etc...

I'd be happy to contribute, but I'm lost in sources, and can not find where the templating engine is call. Any hint will be appreciated.

Implementation ideas

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions