From dcdff7f6dcef450d4a6fde882be6eebad6f8885d Mon Sep 17 00:00:00 2001 From: Mike Geehan Date: Wed, 17 Jun 2026 22:05:24 -0500 Subject: [PATCH 1/3] =?UTF-8?q?v2.27.1:=20ci=20=E2=80=94=20point=20platfor?= =?UTF-8?q?m=20prod=20deploy=20at=20admin-prod=20backend=20(was=20triarch-?= =?UTF-8?q?dev/marketing)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Root cause: app_hosting_backend was 'triarch-dev', which serves the MARKETING repo (triarchsecurity-triarch-dev-website) and holds admin.triarch.dev/triarch.dev/www. The platform admin only ran on admin-dev (dev). New admin-prod backend (platform repo, env=prod) now serves prod; admin.triarch.dev moves onto it. Marketing keeps triarch.dev + www. --- .github/workflows/ci-cd.yml | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/lib/version.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 1be9df3..3f5c3b4 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -21,7 +21,7 @@ jobs: app_type: next-app project_key: triarch-dev firebase_project_id: triarch-dev-website - app_hosting_backend: triarch-dev + app_hosting_backend: admin-prod dev_backend: admin-dev prod_url: https://admin.triarch.dev dev_url: https://admin-dev.triarch.dev diff --git a/package-lock.json b/package-lock.json index bdc45ae..ff737f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "triarch-dev", - "version": "2.27.0", + "version": "2.27.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "triarch-dev", - "version": "2.27.0", + "version": "2.27.1", "dependencies": { "@anthropic-ai/sdk": "^0.98.0", "@dnd-kit/core": "^6.3.1", diff --git a/package.json b/package.json index b82da94..7d1204b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "triarch-dev", - "version": "2.27.0", + "version": "2.27.1", "private": true, "scripts": { "dev": "next dev", diff --git a/src/lib/version.ts b/src/lib/version.ts index a23609a..8c7669d 100644 --- a/src/lib/version.ts +++ b/src/lib/version.ts @@ -1 +1 @@ -export const APP_VERSION = process.env.NEXT_PUBLIC_APP_VERSION ?? 'v2.27.0'; +export const APP_VERSION = process.env.NEXT_PUBLIC_APP_VERSION ?? 'v2.27.1'; From 0a6543da161b564f5cb081bef6593720acc7c0fd Mon Sep 17 00:00:00 2001 From: Mike Geehan Date: Wed, 17 Jun 2026 22:57:43 -0500 Subject: [PATCH 2/3] v2.27.1: add apphosting.prod.yaml overlay (env=prod serving parity with admin-dev) --- apphosting.prod.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 apphosting.prod.yaml diff --git a/apphosting.prod.yaml b/apphosting.prod.yaml new file mode 100644 index 0000000..7b9dc13 --- /dev/null +++ b/apphosting.prod.yaml @@ -0,0 +1,38 @@ +# apphosting.prod.yaml — prod environment overlay +# Auto-loaded by Firebase App Hosting when a backend's "Environment Name" is set to "prod" +# (Console: Backend → Settings → Environment). Merged on top of apphosting.yaml. +# Mirrors apphosting.dev.yaml's variable SET with prod values, so the prod backend +# (admin-prod) loads an environment overlay exactly like admin-dev does — required for +# correct serving on a freshly-created backend. +# https://firebase.google.com/docs/app-hosting/multiple-environments + +env: + - variable: NEXTAUTH_URL + value: https://admin.triarch.dev + availability: + - BUILD + - RUNTIME + + - variable: DEPLOY_WEBHOOK_URL + value: https://admin.triarch.dev/api/webhooks/github-deploy + availability: + - RUNTIME + + - variable: DATABASE_URL + secret: DATABASE_URL + + - variable: INTERNAL_HMAC_SECRET + secret: INTERNAL_HMAC_SECRET + + - variable: CL6_ENFORCEMENT_MODE + value: enforce + availability: + - RUNTIME + + - variable: TMI_BASE_URL + value: https://tmiengine.com + availability: + - RUNTIME + + - variable: TMI_JOB_SECRET + secret: TMI_JOB_SECRET From c52055a66deb150d5d5ff6b90d2895eba22f69df Mon Sep 17 00:00:00 2001 From: Mike Geehan Date: Mon, 22 Jun 2026 10:00:03 -0500 Subject: [PATCH 3/3] v2.27.2: rebuild admin-prod from current code (prod backend serving empty 404s) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit admin-prod's only build (build-2026-06-18-001 @ commit 0a6543d) runs the Next adapter but 404s every route with an empty body — empty-routing build. Force a fresh full rebuild to verify the admin-prod--triarch-dev-website.us-central1.hosted.app URL serves the app before moving the admin.triarch.dev custom domain onto it. Co-Authored-By: Claude Opus 4.8 (1M context) --- package-lock.json | 4 ++-- package.json | 2 +- src/lib/version.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index ff737f4..be37ae6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "triarch-dev", - "version": "2.27.1", + "version": "2.27.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "triarch-dev", - "version": "2.27.1", + "version": "2.27.2", "dependencies": { "@anthropic-ai/sdk": "^0.98.0", "@dnd-kit/core": "^6.3.1", diff --git a/package.json b/package.json index 7d1204b..1c5c009 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "triarch-dev", - "version": "2.27.1", + "version": "2.27.2", "private": true, "scripts": { "dev": "next dev", diff --git a/src/lib/version.ts b/src/lib/version.ts index 8c7669d..9fd9e38 100644 --- a/src/lib/version.ts +++ b/src/lib/version.ts @@ -1 +1 @@ -export const APP_VERSION = process.env.NEXT_PUBLIC_APP_VERSION ?? 'v2.27.1'; +export const APP_VERSION = process.env.NEXT_PUBLIC_APP_VERSION ?? 'v2.27.2';