Publish using GitHub Pages

  1. Add the developer dependency gh-pages
  2. Create a new script in package.json "rm -rf dist && rm -rf .parcel-cache && npm run build && gh-pages -d dist"
  3. Update the public url to match the GitHub repository name --public-url /website in the npm build script
  4. Stop site running locally
  5. Check you are on main
  6. git push
  7. npm run publish

This is a temporary workaround till the site is published to a custom domain.