We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59c5f86 commit d069c8aCopy full SHA for d069c8a
2 files changed
.github/workflows/static.yml
@@ -35,7 +35,7 @@ jobs:
35
- name: Build with Vite
36
run: npm run build
37
env:
38
- GITHUB_PAGES: true
+ VITE_BASE_PATH: "/${{ github.event.repository.name }}/"
39
40
- name: Setup Pages
41
uses: actions/configure-pages@v5
vite.config.js
@@ -1,7 +1,7 @@
1
import { defineConfig } from 'vite'
2
3
export default defineConfig({
4
- base: process.env.GITHUB_PAGES ? '/jma-wind-map/' : '/',
+ base: `/${process.env.VITE_BASE_PATH}/` || '/',
5
build: {
6
sourcemap: true
7
}
0 commit comments