5 ms·
My static sites are built on the server (Github pages or Cloudflare Pages). They rebuild each time there are new commit on the repo, and that way I don’t need t
by elondaits 12d ago
My static sites are built on the server (Github pages or Cloudflare Pages). They rebuild each time there are new commit on the repo, and that way I don’t need to version built artifacts.
I built locally for many many years and I’m much happier with this model since the commit log is a much better reflection of what changed and there are no inconsistencies as whenever you’d commit source and built artifacts that don’t match.
… It demands some extra care in terms of making sure the server can pull the dependencies and run the build scripts, but that also means my colleagues (or me in the future recovering the project from the repo) would be able to build with what was commited and nothing more… which is a requirement in my case.