I'm curious if it's common practice to have version numbers on websites like it is in app development. I've never done it myself and I'm wondering how others manage this. If you do version your website, what method do you use?
4 Answers
I don't really use version numbers externally. Most people are more interested in the publication dates rather than the last time the code was updated.
I think it's good practice to track versions, especially for client sites. I usually make updates monthly, and keeping a version number helps track features.
For debugging purposes, I expose my git hash as a global variable. It's just a way to check what version I'm seeing when looking at the site.
I keep the npm package version and the git hash in a humans.txt file. This way, I can easily check which build is live.
Related Questions
Cloudflare Origin SSL Certificate Setup Guide
How To Effectively Monetize A Site With Ads