How the project is set up for static hosting
Three things in the repository make static hosting work:
next.config.jssetsbasePath: '/fntracker', so every script and link expects to live under/fntracker/.- The build script in
package.jsonisnext build && next export -o docs && touch docs/.nojekyll. It compiles the app, exports plain HTML, CSS and JavaScript intodocs/, and adds an empty.nojekyllfile. .nojekylltells 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.
- Create a new GitHub repository named fntracker.
- Upload the unzipped project, including the
docs/folder, to itsmasterbranch. If GitHub creates the repository with amainbranch, use that instead. - Open the repository's Settings → Pages. Under Build and deployment, choose Deploy from a branch, pick your branch and the /docs folder, and save.
- 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: setbasePath: '/milestones'. - Served from the root of a domain, such as a user site or a custom domain: remove the
basePathline, 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