fix(web): byt ut platshallarsidan mot en riktig C0PY-konsol
CI (SIAX Cloud) / sonar (push) Skipped
CI (SIAX Cloud) / security (push) Successful in 16s
CI (SIAX Cloud) / contracts (push) Successful in 31s
Component conformance / Component conformance (blocking) (push) Failing after 45s
CI (SIAX Cloud) / quality (push) Successful in 1m53s
CI (SIAX Cloud) / sonar (pull_request) Skipped
CI (SIAX Cloud) / security (pull_request) Successful in 35s
security / scan (pull_request) Failing after 26s
Component conformance / Component conformance (blocking) (pull_request) Failing after 46s
CI (SIAX Cloud) / contracts (pull_request) Successful in 50s
CI (SIAX Cloud) / quality (pull_request) Successful in 2m15s
CI (SIAX Cloud) / sonar (push) Skipped
CI (SIAX Cloud) / security (push) Successful in 16s
CI (SIAX Cloud) / contracts (push) Successful in 31s
Component conformance / Component conformance (blocking) (push) Failing after 45s
CI (SIAX Cloud) / quality (push) Successful in 1m53s
CI (SIAX Cloud) / sonar (pull_request) Skipped
CI (SIAX Cloud) / security (pull_request) Successful in 35s
security / scan (pull_request) Failing after 26s
Component conformance / Component conformance (blocking) (pull_request) Failing after 46s
CI (SIAX Cloud) / contracts (pull_request) Successful in 50s
CI (SIAX Cloud) / quality (pull_request) Successful in 2m15s
c0py.siax.io och c0py-web.siax.io renderade bokstavligen <div>c0py</div> (4 tecken synlig text) - rotsidan var en platshallare i repot, inte ett driftfel. Headless-matning 2026-11-11 fran server11: HTTP 200, tom title, textLen=4, 0 lankar, 0 knappar. Rotsidan renderar nu riktigt innehall grundat i repots egna fakta: * produktidentitet och syfte ur README.md, * LIVE API-status last server-side ur API:ets egen publika /health (status, CL0UD-bindning, API-tid, lastid) - och en uttrycklig "kunde inte lasas"-text nar API:et inte svarar, aldrig en pahittad status, * den faktiska API-ytan (/health publik, /v1/c0py/registries|scans bearer) enligt apps/api/src, * den kanoniska pipelinen ur README/MASTERPLAN. Dessutom: * /api/health for c0py-web (status, commit, apiBaseUrl) - samma monster som ovriga SIAX-produkter; Dockerfile.web skriver commit till /app/.c0py-commit och HEALTHCHECK pekar nu pa /api/health i stallet for /, * app/icon.svg - c0py-surfacen gav 404 pa /favicon.ico vid varje sidladdning, * 7 enhetstester for statuslasningen (inkl. att fel och timeout INTE rapporteras som ok) ersatter noop-testet. SIAX-design: Inter, blacksvart rubrik #15151B, violett sidkant #5326CC, morkt identitetsfalt. Inga nya beroenden (lockfilen oforandrad), inga lokala DES1GN-primitivnamn exporteras. Verifierat lokalt: validate:architecture OK, typecheck OK, 7/7 webbtester, next build OK, next start ger 1475 tecken synlig text och /api/health 200 med live API-status (HTTP 200, status ok, cl0ud disabled). Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5
parent
e1ce3afa3f
commit
a1b3fef1ac
+3
-2
@@ -13,7 +13,8 @@ RUN apk add --no-cache git wget \
|
||||
&& corepack enable \
|
||||
&& corepack prepare [email protected] --activate
|
||||
|
||||
RUN git clone --depth 1 --branch "${C0PY_REF}" "${C0PY_REPO}" /app
|
||||
RUN git clone --depth 1 --branch "${C0PY_REF}" "${C0PY_REPO}" /app \
|
||||
&& git -C /app rev-parse HEAD > /app/.c0py-commit
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -28,6 +29,6 @@ ENV NEXT_TELEMETRY_DISABLED=1
|
||||
EXPOSE 3000
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
|
||||
CMD wget -qO- http://127.0.0.1:3000/ >/dev/null 2>&1 || exit 1
|
||||
CMD wget -qO- http://127.0.0.1:3000/api/health >/dev/null 2>&1 || exit 1
|
||||
|
||||
CMD ["pnpm", "--filter", "@siax/c0py-web", "start"]
|
||||
|
||||
Reference in New Issue
Block a user