Repository navigation
Commit d465079
committed
fix(hub-ui): read import.meta.url through a variable so Vite doesn't inline the module
Vite's lib build recognizes the literal `new URL('...', import.meta.url)`
asset pattern and was inlining the embedded/standalone entry's own source
as a `data:video/mp2t` URL — so at runtime the dock resolved its hub base
from that data URL instead of the served script URL, and connection-meta
discovery failed. Assigning import.meta.url to a variable first sidesteps
the pattern matcher; the base stays the real runtime URL.1 parent 90930f8 commit d465079
2 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | | - | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
0 commit comments