Menu

Which build is this? Stamping every static bundle, and a default that pointed at production
📰

Which build is this? Stamping every static bundle, and a default that pointed at production

DEV Community: frontend·Eric Gitangu·1 day ago
#XsfFSE7g
#devtofrontend#devto#dev#stamp#origin
Long article (832 words) — no AI summary yet.
Reading 0:00
15s threshold

I'm Eric Gitangu. I work on backend and platform systems for a mobility/fintech platform. This one is about a small JSON file, and a default value that pointed the wrong way. The work is built and tested on branches and is not live in production yet.

The question the bundle couldn't answer

We ship several single-page apps as static exports. A build is a folder of files. Once it sits on a server, nothing in it says which commit it came from, which environment it was built for, or whether someone built it from a checkout with uncommitted changes. To find out you open the deploy log and hope it still exists and still tells the truth.

I wanted the server to be able to ask the bundle itself.

The stamp

On my branch, every build writes one small file at the very end of the export, after the other post-build steps.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.