Skip to content

Commit d89afbd

Browse files
author
maxpleaner
committed
make work with github pages
1 parent 30a0a93 commit d89afbd

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626

2727
- name: Build
2828
run: npm run build
29+
env:
30+
VITE_BASE_PATH: /StickerLayout/
2931

3032
- name: Deploy to GitHub Pages
3133
uses: peaceiris/actions-gh-pages@v3

vite.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ import react from '@vitejs/plugin-react'
33

44
export default defineConfig({
55
plugins: [react()],
6+
base: process.env.VITE_BASE_PATH || '/',
67
})

0 commit comments

Comments
 (0)