Closed Supergrammer closed 1 year ago
vite.config.js
의 baseUrl 이 /<repository name>/
으로 고정되어 있었는데, 리포지토리명이 변경되면서 라인 삭제{
"name": "github-pages",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"predeploy": "vite build",
"deploy": "cd dist && cp index.html 404.html && cd .. && gh-pages -d dist"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.2.1",
"@mdi/font": "^7.1.96",
"gh-pages": "^4.0.0",
"pinia": "^2.0.28",
"vue": "^3.2.45",
"vue-router": "^4.1.6",
"vuetify": "^3.0.6"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.0.0",
"vite": "^4.0.0"
}
}
deploy 스크립트가
gh-pages -d dist
에서cd dist && cp index.html 404.html && cd ..
부분을 추가
검색해 보니 react 의 router 에서도 같은 현상이 발생하는듯 함
Originally posted by @Supergrammer in https://github.com/Supergrammer/github-pages/issues/2#issuecomment-1368779217