From de2e3e6aed10aa643295a2a540865a9bd81e16ec Mon Sep 17 00:00:00 2001 From: MovieWebIPFS <161489517+MovieWebIPFS@users.noreply.github.com> Date: Sat, 2 Mar 2024 19:39:03 +0000 Subject: [PATCH] feat: allow setting 'base' via VITE_BASE_URL this sets the default to `/` which results in this patch not breaking behavior. This is being used to set base as a relative path to enable hosting movie-web at any non-root location --- vite.config.mts | 1 + 1 file changed, 1 insertion(+) diff --git a/vite.config.mts b/vite.config.mts index 264871b0..c9e63ade 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -24,6 +24,7 @@ const captioningPackages = [ export default defineConfig(({ mode }) => { const env = loadEnv(mode, process.cwd()); return { + base: env.VITE_BASE_URL || '/', plugins: [ million.vite({ auto: true, mute: true }), handlebars({