Use relative base path for vite build

Allows Element Call to be served from a subdirectory (e.g. /widgets/element-call/
in Element Web) without breaking dynamic imports for locales, workers, and other
assets that were previously using absolute paths.

Signed-off-by: Ryan Emmick <ryanemmick4@gmail.com>
This commit is contained in:
Ryan Emmick
2026-04-23 09:47:58 -05:00
parent b043230680
commit 297470ac2e
+1
View File
@@ -102,6 +102,7 @@ export default ({
console.log("Allowed vite paths:", allow);
return {
base: "./",
server: {
port: 3000,
fs: { allow },