diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index d8c9565e9..96d048e07 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -31,6 +31,8 @@ jobs: echo 'VITE_USE_HASH_ROUTER=true' >> .env.development mv .env.development .env.production.local - name: Build + env: + VITE_APP_BASE_PATH: '/modiapersonoversikt/' run: npm run build - name: Deploy if: success() diff --git a/vite.config.ts b/vite.config.ts index fb74174d6..b60153db2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -31,6 +31,7 @@ const modiaFrontendCompat = (): { transformIndexHtml: IndexHtmlTransform } & Plu }; export default defineConfig({ + base: process.env.VITE_APP_BASE_PATH || '/', server: { port: 3000, proxy: {