Skip to content

#3485543: Support the `VITE_SERVER_ORIGIN` environment variable in the `xb_vite` module

Introducing the use of the VITE_SERVER_ORIGIN environment variable in the hook_library_info_alter hook implementation of xb_vite, where we now include assets served by Vite's dev server from the specified origin URL. The value is also passed as a Drupal setting, so window.js can make use of it. By doing so it had to be updated to use a dynamic import instead of a static one.

Merge request reports

Loading