Files
ai-spel-frontend/scripts/check-frontend.sh
T
Ein Anderssono 6335f86f65
Build and publish frontend / publish (push) Failing after 9s
Start standalone frontend service
2026-10-14 09:46:00 +02:00

14 lines
426 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
test -s index.html
grep -q '<html lang="sv">' index.html
grep -q '<h1>En värld du formar</h1>' index.html
grep -q 'id="frontend-version">__FRONTEND_VERSION__' index.html
grep -q "request('/version')" index.html
grep -q 'id="api-version"' index.html
grep -Fq "credentials: 'same-origin'" index.html
grep -q 'location = /healthz' nginx/default.conf
echo 'Frontend source checks passed.'