Skip to content

[React 프로젝트 웹사이트 배포]

Dongho Lee edited this page Sep 17, 2023 · 4 revisions

GitHub Pages 통한 배포

  1. vite.config.js
    base: '/finalize-react-6/',
    설정

  2. package.json
    "deploy": "gh-pages -d dist --remote upstream",
    설정 후 명령어 실행

  3. 프로젝트 레포지토리
    Settings => pages => Build and deployment
    Branch : gh-pages
    Select folder : /(root)