배포를 하기위해 제가 대신 굴러보았습니다..!
여러분은 그저 따라만 오십시오.
프로젝트를 실행할 때 vite를 사용하고 있다면

이런식으로 실행이 됩니다. 만약 vite를 사용하고 있지 않다면 이곳 으로 가서 Svelte 프로젝트를 배포하는 방법을 알아보세요 😊
$ git init$ git add .$ git commit -m "first-commit"$ git branch -M main$ git remote add origin http://github.com/username/repo-name.git$ git push -u origin main
만약 배포하는 url이 https://<USERNAME>.github.io/ 이런 형식이라면 base를 '/'로 하면 됩니다.
만약 https://<USERNAME>.github.io/<REPO>/이런식으로 repository가 뒤에 붙는다면 base를 '/레포지토리 이름/' 으로 하면 됩니다.
plugins에 svelte로 되어있을텐데 가만히 냅두면 됩니다. 혹시 react와 vite를 사용하고 계신다면 사진처럼 plugins가 react로 되어있을 겁니다.
npm을 사용한다면npm run build yarn을 사용한다면 yarn build 터미널에서 실행하기
/dist 폴더에 index.html , assets, vite.svg가 있는 것을 확인할 수 있습니다.
repository에 /dist 폴더를 추가 합니다.
git add dist -fgit commit -m "Adding dist" git subtree push --prefix dist origin gh-pagesgithub 페이지 설정



잘 되었다면 package.json의 "scripts"안에
"deploy":"npm run build && git add dist -f && git commit -m'hosting' && git subtree push --prefix dist origin gh-pages"를 넣어줍니다. 이미 deploy가 있다면 덮어씌웁니다. 수정을 합니다!