About TyMick.me

Why yes, I built this site! TyMick.me is a static website built with Next.js and hosted on GitHub Pages. You can view the source (and the static build, if you’d like) on GitHub.

Static sites may not be where Next.js shines, but I came across the framework when starting to build a server-rendered app that’s been stuck in my head (the beginning stages of which you can find in my Next.js local authentication with MongoDB project), and now that I’ve been working in it so long it was the natural choice for building this portfolio site as quickly and efficiently as possible. I’m thinking I may port it to Gatsby once I start writing more, but no need to learn a new framework just yet.

Design I accomplished with Bootstrap (via React Bootstrap) and a little custom Sass. Just wanted something minimal.

If you’re curious how I got separate source and master branches on my tywmick.github.io repository, it went a little something like this:

  • Renamed my default branch source
  • Created a clean orphan branch named master
  • Pushed master to the remote
  • Installed gh-pages
  • Configured my npm scripts like so:
    "scripts": {
      "dev": "next dev",
      "build": "next build && next export",
      "start": "next start",
      "predeploy": "npm run build",
      "deploy": "gh-pages -b master -d out -m Build -t"
    }
    

I would’ve named the build branch build, but alas, GitHub requires that user sites be built from the master branch.