Skip to content

Commit

Permalink
Sett riktig base path for GH pages
Browse files Browse the repository at this point in the history
  • Loading branch information
oddgfa committed Oct 23, 2024
1 parent fa0a15b commit 79c28b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const modiaFrontendCompat = (): { transformIndexHtml: IndexHtmlTransform } & Plu
};

export default defineConfig({
base: process.env.VITE_APP_BASE_PATH || '/',
server: {
port: 3000,
proxy: {
Expand Down

0 comments on commit 79c28b2

Please sign in to comment.