Hosting3 min readUpdated 2 November 2026

Host your own copy of FN Tracker on GitHub Pages

Running FN Tracker with npm works fine on a PC, but you can’t do that on a phone. The project was set up from the start to be published on GitHub Pages, so a hosted copy only takes a few minutes.

Build pipeline from pages folder through next build and next export to a docs folder and a globe

How the project is set up for static hosting

Three things in the repository make static hosting work:

  • next.config.js sets basePath: '/fntracker', so every script and link expects to live under /fntracker/.
  • The build script in package.json is next build && next export -o docs && touch docs/.nojekyll. It compiles the app, exports plain HTML, CSS and JavaScript into docs/, and adds an empty .nojekyll file.
  • .nojekyll tells GitHub Pages not to run Jekyll. Jekyll ignores folders that start with an underscore, and Next.js puts its scripts in _next/.

The author's own commits show this setup being added: "move out to docs to enable GitHub pages", two "Update basePath for GitHub Pages" fixes, and "Disable jekyll processing".

The simple path: keep the name fntracker

A GitHub Pages project site lives at https://<your-username>.github.io/<repository-name>/. If your repository is called fntracker, that path matches the base path the project already uses.

  1. Create a new GitHub repository named fntracker.
  2. Upload the unzipped project, including the docs/ folder, to its master branch. If GitHub creates the repository with a main branch, use that instead.
  3. Open the repository's Settings → Pages. Under Build and deployment, choose Deploy from a branch, pick your branch and the /docs folder, and save.
  4. After GitHub finishes publishing, open https://<your-username>.github.io/fntracker/.

The ZIP already contains a docs/ folder built by the author, so you don't even need to rebuild unless you change something.

Rebuilding after changes

If you edit the milestone list or the page, rebuild before you upload:

npm run build

This replaces the contents of docs/. On Node.js 17 and newer, set the legacy OpenSSL option first, as described in the setup guide.

Windows note. The last part of the build script uses touch, which Command Prompt and PowerShell don't have. The export finishes first, so if you see "'touch' is not recognized", just create an empty file named .nojekyll inside docs/ yourself, or run the build from Git Bash or WSL.

Using a different repository name or your own domain

If the site will live somewhere other than /fntracker/, change the base path to match and rebuild:

  • Repository named something else, for example milestones: set basePath: '/milestones'.
  • Served from the root of a domain, such as a user site or a custom domain: remove the basePath line, or set it to an empty string.

If the base path and the real location don't match, the page loads but stays blank, because its scripts are requested from the wrong folder.

Your progress on the hosted copy

The hosted copy is a different web address from localhost:3000, so it starts with an empty list. Each phone or browser keeps its own ticks. If you want to carry progress across, use the backup and restore snippets in How FN Tracker saves your progress.

Ready to try FN Tracker?

Download Now

Back to all FN Tracker guides