Skip to content

oldmcdonnell/portfolio

Repository files navigation

React + Vite Template

This is a template with the following:

local dev

  • $ nvm use 20
  • $ npm install
  • $ npm run dev

production deploy to GitHub Pages

initial setup

  • vite.config.js => change base to your GitHub repo name
  • GitHub => repo => settings => pages => branch => select 'main' and change from /root to /docs

deploy

  • from branch 'main':
  1. $ npm run build
  2. add changes and push to repo