From 8987127cb5c5b3408aaa561baf14d1774c13e9d7 Mon Sep 17 00:00:00 2001 From: Siara <108543037+SiaraMist@users.noreply.github.com> Date: Thu, 21 Aug 2025 14:25:44 -0700 Subject: [PATCH 1/5] Fix ea bug again (#57228) From 9574c7c2d83dea367452db5a49783328f1b26705 Mon Sep 17 00:00:00 2001 From: Robert Sese <734194+rsese@users.noreply.github.com> Date: Thu, 21 Aug 2025 16:35:23 -0500 Subject: [PATCH 2/5] set `--no-experimental-strip-types` node option (#57226) --- .github/workflows/headless-tests.yml | 3 +++ .github/workflows/local-dev.yml | 2 ++ Dockerfile | 2 +- package-lock.json | 2 +- package.json | 2 +- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/headless-tests.yml b/.github/workflows/headless-tests.yml index 01d35526fb9e..5c1ced60b3ff 100644 --- a/.github/workflows/headless-tests.yml +++ b/.github/workflows/headless-tests.yml @@ -57,6 +57,9 @@ jobs: - name: Run Playwright tests env: PLAYWRIGHT_WORKERS: ${{ fromJSON('[1, 4]')[github.repository == 'github/docs-internal'] }} + # workaround for https://github.com/nodejs/node/issues/59364 as of 22.18.0 + NODE_OPTIONS: '--no-experimental-strip-types' + # Run playwright rendering tests and a11y tests (axe scans) as distinct checks # so that we can run them without blocking merges until we can be confident # results for a11y tests are meaningul and scenarios we're testing are correct. diff --git a/.github/workflows/local-dev.yml b/.github/workflows/local-dev.yml index e706c212b12d..55acf15eafb5 100644 --- a/.github/workflows/local-dev.yml +++ b/.github/workflows/local-dev.yml @@ -50,6 +50,8 @@ jobs: # by default failures are marked as "flaky" instead of "failed". PLAYWRIGHT_RETRIES: 0 TEST_EARLY_ACCESS: ${{ github.repository == 'github/docs-internal' }} + # workaround for https://github.com/nodejs/node/issues/59364 as of 22.18.0 + NODE_OPTIONS: '--no-experimental-strip-types' run: npm run playwright-test -- playwright-local-dev - name: Start server in the background diff --git a/Dockerfile b/Dockerfile index 4fdcedbace2b..5a8c618aae2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ FROM ghcr.io/github/gh-base-image/gh-base-noble:20250805-204228-g50c20871f AS ba # Must run as root RUN apt-get -qq update && apt-get -qq install --no-install-recommends curl git \ && curl -sL https://deb.nodesource.com/setup_22.x | bash - \ - && apt-get install -y nodejs=22.17.0-1nodesource1 \ + && apt-get install -y nodejs \ && node --version # Create the node user and home directory diff --git a/package-lock.json b/package-lock.json index c18dccfcee93..a56d07679951 100644 --- a/package-lock.json +++ b/package-lock.json @@ -175,7 +175,7 @@ "website-scraper": "^5.3.1" }, "engines": { - "node": "^20 || >=22.0.0 <22.18.0" + "node": "^20 || ^22" }, "optionalDependencies": { "esm": "^3.2.25" diff --git a/package.json b/package.json index 4ef3a1398461..675f556ac274 100644 --- a/package.json +++ b/package.json @@ -328,7 +328,7 @@ "esm": "^3.2.25" }, "engines": { - "node": "^20 || >=22.0.0 <22.18.0" + "node": "^20 || ^22" }, "cacheDirectories": [ "node_modules", From abcc34bb47934cd64a88d230d5d5fd99c522fd9c Mon Sep 17 00:00:00 2001 From: Siara <108543037+SiaraMist@users.noreply.github.com> Date: Thu, 21 Aug 2025 15:28:43 -0700 Subject: [PATCH 3/5] Create docs-internal PR for Early Access preview (#57227) From d2728edeae726f4239616a804f1db466f994b67a Mon Sep 17 00:00:00 2001 From: Shin Date: Thu, 21 Aug 2025 15:49:57 -0700 Subject: [PATCH 4/5] Copilot api (#57202) Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com> Co-authored-by: Siara <108543037+SiaraMist@users.noreply.github.com> From 2d332d79e22b38106e5189999fb725a03e308f52 Mon Sep 17 00:00:00 2001 From: Robert Sese <734194+rsese@users.noreply.github.com> Date: Thu, 21 Aug 2025 18:23:09 -0500 Subject: [PATCH 5/5] don't 404 on _build (#57231) --- src/frame/middleware/app-router-gateway.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frame/middleware/app-router-gateway.ts b/src/frame/middleware/app-router-gateway.ts index 695a141942bb..b0f4380ea876 100644 --- a/src/frame/middleware/app-router-gateway.ts +++ b/src/frame/middleware/app-router-gateway.ts @@ -48,6 +48,7 @@ export default function appRouterGateway(req: ExtendedRequest, res: Response, ne if ( path.startsWith('/_next/') || + path.startsWith('/_build') || path.startsWith('/assets/') || path.startsWith('/public/') || path.startsWith('/api/') ||