#3485543: Support the `VITE_SERVER_ORIGIN` environment variable in the `xb_vite` module
requested to merge issue/experience_builder-3485543:3485543-vite-server-origin-env-variable into 0.x
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.