From efdfb1655bf5d35d0670d80cc86837031e14cf49 Mon Sep 17 00:00:00 2001 From: Linde Vrenne Date: Fri, 9 Oct 2026 15:42:43 +0200 Subject: [PATCH] =?UTF-8?q?Sett=20base=20til=20/project2/=20for=20bygg=20p?= =?UTF-8?q?=C3=A5=20VM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/vite.config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index d789a7c..974401e 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -3,9 +3,10 @@ import babel from '@rolldown/plugin-babel' import { defineConfig } from 'vite' // https://vite.dev/config/ -export default defineConfig({ +export default defineConfig(({ command }) => ({ + base: command === 'build' ? '/project2/' : '/', plugins: [ react(), babel({ presets: [reactCompilerPreset()] }) ], -}) +})) \ No newline at end of file