mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
Dependabot's bump fails the build: vite.config.js defined the global apiRoot as a template literal evaluated on every read (the backend address lives in localStorage and the address dialog changes it), and Vite 5+ only accepts a literal in define. The global is a getter on window now, installed by a plugin imported first in main.js, returning the same expression on every read; the call sites are untouched.