Added build ID to footer. Added check for client-server mismatch.

This commit is contained in:
Pen Anderson 2026-03-03 13:38:31 -06:00
parent 10037add99
commit 0d940749b1
5 changed files with 77 additions and 2 deletions

View file

@ -1,10 +1,10 @@
.PHONY: build frontend-build dev clean test
build: frontend-build
CGO_ENABLED=0 go build -o turnpike .
CGO_ENABLED=0 go build -ldflags "-X main.buildID=$$(git rev-parse --short HEAD)" -o turnpike .
frontend-build:
cd frontend && npm ci && npm run build
cd frontend && npm ci && BUILD_ID=$$(git rev-parse --short HEAD) npm run build
dev:
@echo "Run in two terminals:"