feat(web,server): embed статики SPA + fallback, монтирование в cmd/server

This commit is contained in:
2026-07-03 18:14:18 +07:00
parent 388bf4aeb6
commit bba72cc70f
5 changed files with 100 additions and 1 deletions
+9
View File
@@ -5,3 +5,12 @@ test:
.PHONY: build
build:
go build ./...
.PHONY: web
web:
cd web && npm ci && npm run build
rm -rf internal/web/dist
cp -r web/dist internal/web/dist
.PHONY: build-all
build-all: web build