A test repository to confirm I understand how react interacts with github pages and to ensure I was able to get it working using bun and vite
I followed this guide, adapting it for Bun and Vite by:
- Using
bun create vite practice-app
in place ofnpx create-react-app practice-app
and following the instructions given in terminal to runbun install
in./practice-app
- Using
bun
in place ofnpm
andnpx
- Changing the
"deploy"
script from"gh-pages -d build"
to"gh-pages -d dist"
, to reflect the differing directory used by Vite
Note: Make sure the base:
attribute in vite config is set to /practice-app/
From the ./practice-app
directory, I type bun run deploy
.
This automatically runs bun run predeploy
first