viterex_addon-3.5.2.zip
Fixed
Bogus host_url (http://.) in structure.json (Vite dev server answering with Access-Control-Allow-Origin: http://.). Two defects, both fixed:
Config::getHostUrl()usedrex_yrewrite::getDefaultDomain(), which returns yrewrite's synthetic catch-all (hostnull), not the configured domain. Its URL is built from$_SERVER, so any CLI context — console commands, an installer runningpackage:install— producedhttp://..getHostUrl()now picks the first real yrewrite domain (host set) and only then falls back to$_SERVER.structure.jsonwas only written on addon install and on saving the settings page, so yrewrite domains configured afterwards (e.g. an installer seeding the database afterpackage:install) never reached the file. It is now regenerated on every cache clear (CACHE_DELETEDextension point,LATEso yrewrite rebuilds its own data first) — a plainbin/console cache:clearor the dev badge's cache-clear button self-heals a stalehost_url.