From 1d58be5caa0886c03455fdb4b8d686959e0979b6 Mon Sep 17 00:00:00 2001 From: Dev Talan <84081651+devchaudhary24k@users.noreply.github.com> Date: Wed, 7 Oct 2026 05:25:44 +0530 Subject: [PATCH 1/2] fix(site): ship React with the server so the image starts Recharts reaches React through use-sync-external-store, which loads it with require(). The server bundle left that require unresolved, so the Docker image, which has no node_modules beside its output, failed every request with "Cannot find module 'react'" and never became healthy. Nitro now traces react and react-dom into the output, so every part of the Site uses that one copy. --- apps/site/vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/site/vite.config.ts b/apps/site/vite.config.ts index 6123d92..405adba 100644 --- a/apps/site/vite.config.ts +++ b/apps/site/vite.config.ts @@ -14,7 +14,7 @@ export default defineConfig({ devtools(), tailwindcss(), tanstackStart(), - nitro({ traceDeps: ["satori*", "harfbuzzjs*", "@resvg/resvg-js*", "pdfkit*"] }), + nitro({ traceDeps: ["satori*", "harfbuzzjs*", "@resvg/resvg-js*", "pdfkit*", "react", "react-dom"] }), react(), sentryTanstackStart({ org: process.env.SENTRY_ORG, From 4d94470fbd521d8e7a43a9bb2b3303a75036746a Mon Sep 17 00:00:00 2001 From: Dev Talan <84081651+devchaudhary24k@users.noreply.github.com> Date: Wed, 7 Oct 2026 05:25:44 +0530 Subject: [PATCH 2/2] test(site): open the repository palette once the page listens for it The test pressed Ctrl+K before the page had attached its shortcut, so the palette sometimes never opened. It now presses again until the palette is shown. --- apps/site/e2e/foundation.spec.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/site/e2e/foundation.spec.ts b/apps/site/e2e/foundation.spec.ts index 127be49..4fe95e2 100644 --- a/apps/site/e2e/foundation.spec.ts +++ b/apps/site/e2e/foundation.spec.ts @@ -88,7 +88,11 @@ test("the repository page has avatars, one chart, and none of the panels the Sit await expect(page.getByRole("heading", { name: "Commits over time" })).toHaveCount(1); await expect(page.getByRole("list", { name: "Contributors" }).getByRole("listitem")).toHaveCount(3); await expect(page.getByRole("list", { name: "Contributors" }).locator("[class*=avatar]").first()).toBeVisible(); - await page.keyboard.press("Control+k"); + const palette = page.getByRole("dialog", { name: "Search people, folders, files and commits" }); + await expect(async () => { + await page.keyboard.press("Control+k"); + await expect(palette).toBeVisible({ timeout: 1000 }); + }).toPass(); await page.keyboard.type("Carol"); await expect(page.getByRole("option", { name: "Carol", exact: true })).toBeVisible(); await expect(page.getByRole("option", { name: /Commits that mention/ })).toBeVisible();