diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1e1de29..e8f3107 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/vite.config.ts b/vite.config.ts index d92c9f5..b14b85e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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 } }),