I'm curious about versioning for websites, similar to what we do with apps. I don't currently include version numbers on my site, but I wonder if anyone else does. If you do, what approach do you take for tracking versions?
5 Answers
I keep my npm package version and git hash in my humans.txt file. It helps me track when new builds go live easily, which is really useful.
For my site, I include my git hash as a global variable. It helps during debugging so I can easily check what version of the site I'm working with.
I don't use version numbers for my website. I think most people prefer seeing dates to understand when content was published, rather than focusing on version changes.
I follow a versioning format that combines major, minor, and fix numbers as the name for my root folder. This is symlinked so the public site always points to the latest version.
I like to track versions in my web app manifest using the package version from my package.json file. This method is particularly useful for progressive web apps.

Related Questions
How to Build a Custom GPT Journalist That Posts Directly to WordPress
Cloudflare Origin SSL Certificate Setup Guide
How To Effectively Monetize A Site With Ads