From 297470ac2e1fc1421a87c58fc834a1d6bd321ce7 Mon Sep 17 00:00:00 2001 From: Ryan Emmick Date: Wed, 11 Feb 2026 12:04:01 -0600 Subject: [PATCH] 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 --- vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/vite.config.ts b/vite.config.ts index 801ea79aa..8807826c7 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -102,6 +102,7 @@ export default ({ console.log("Allowed vite paths:", allow); return { + base: "./", server: { port: 3000, fs: { allow },