Skip to content

Commit

Permalink
Fix base URL from pages setup
Browse files Browse the repository at this point in the history
  • Loading branch information
pfumagalli committed Sep 26, 2024
1 parent 041bedd commit 0d60eff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ jobs:

- name: Setup Pages
uses: actions/configure-pages@v5
id: setup

- name: Build Pages
run: |
npm clean-install
npm run build
env:
VITE_BASE_URL: "${{steps.setup.outputs.base_url}}"

- name: Upload Pages
uses: actions/upload-pages-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { defineConfig } from 'vite'

// https://vitejs.dev/config/
export default defineConfig({
base: process.env.VITE_BASE_URL,
clearScreen: false,
plugins: [
vue({ template: { transformAssetUrls } }),
Expand Down

0 comments on commit 0d60eff

Please sign in to comment.