From de436b5f8fac56e482000be91c401d9029cdd713 Mon Sep 17 00:00:00 2001 From: f-amine Date: Mon, 29 Jun 2026 11:53:14 +0100 Subject: [PATCH] chore: restore clean biome baseline biome check had 6 errors on master (CI never gated on it, so the baseline drifted). Fix the two real source issues and stop linting vendored/generated trees: - admin/proxy.ts: build WEB_SIGN_IN with a template literal, and only take the APP_URL branch when it is set. Previously `undefined + "/sign-in"` produced a truthy "undefined/sign-in", so the localhost fallback never fired. - seo/json-ld.tsx: drop the unused noDangerouslySetInnerHtml suppression. - biome.json: ignore .agents (vendored skills), drizzle migrations/meta, and skills-lock.json, matching the existing .claude/.ruflo ignores. biome check now exits clean. Co-Authored-By: Claude Opus 4.8 (1M context) --- apps/admin/src/proxy.ts | 4 ++-- apps/marketing/src/components/seo/json-ld.tsx | 1 - biome.json | 5 ++++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/admin/src/proxy.ts b/apps/admin/src/proxy.ts index 17015c3..076b8bd 100644 --- a/apps/admin/src/proxy.ts +++ b/apps/admin/src/proxy.ts @@ -10,10 +10,10 @@ const intl = createIntlMiddleware({ }); // Admin shares cookies with the web app. Sign-in lives on the web app. +const WEB_APP_URL = process.env.NEXT_PUBLIC_APP_URL?.replace(/\/$/, ""); const WEB_SIGN_IN = process.env.NEXT_PUBLIC_WEB_SIGN_IN_URL || - process.env.NEXT_PUBLIC_APP_URL?.replace(/\/$/, "") + "/sign-in" || - "http://localhost:3001/sign-in"; + (WEB_APP_URL ? `${WEB_APP_URL}/sign-in` : "http://localhost:3001/sign-in"); export default async function middleware(req: NextRequest) { const sessionCookie = diff --git a/apps/marketing/src/components/seo/json-ld.tsx b/apps/marketing/src/components/seo/json-ld.tsx index e87f89cb..432ffb1 100644 --- a/apps/marketing/src/components/seo/json-ld.tsx +++ b/apps/marketing/src/components/seo/json-ld.tsx @@ -7,7 +7,6 @@ function JsonLdScript({ data }: { data: JsonLdData }) { return (