jonny.sh

Jon’s Homepage

This site is made using NextJS and GitHub Pages. GitHub automatically exports a static build for NextJS into HTML and serves it. I just needed to enable pages from the repo settings.

Running Site Locally

Publishing to your own site

Deployment

This repository includes an automated deployment script that simplifies the process of deploying to GitHub Pages.

Using the Deployment Script

To deploy your site:

./scripts/deploy.sh

That’s it! The script handles everything else automatically.

What the Script Does

The deployment script performs the following steps:

  1. Safety Checks
    • Verifies you’re on the master branch
    • Checks for uncommitted changes
    • Ensures git remote is properly configured
  2. Build and Export
    • Builds the Next.js site
    • Exports static files to the out directory
  3. Deployment
    • Preserves the CNAME file for custom domain
    • Creates a .nojekyll file to disable Jekyll processing
    • Switches to gh-pages branch (or creates it if it doesn’t exist)
    • Copies build files to the gh-pages branch
    • Commits and pushes to GitHub
  4. Cleanup
    • Returns to your original branch

Prerequisites

Common Issues and Solutions

For more detailed information about the branching and deployment strategy, see the CONTRIBUTING.md file.

Brought you by vibe coding. Cheers!