From 247fdaaee92e374ce4644002db2ec7d92ab15b8e Mon Sep 17 00:00:00 2001 From: Nick Vigilante Date: Mon, 30 Nov 2026 18:54:26 +0000 Subject: [PATCH 1/2] ci: build the offline export with webpack The offline kit supports webpack, but no job built with it, so a node: import reaching the bundle from the docs-config root was only caught by hand. A new job syncs the fixture corpus, runs next build --webpack for apps/offlinedocs, and runs playground:check on the output. It is in the needs list of build & check. Assisted-by: AI --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 586c20a3..4e111ab9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -196,6 +196,23 @@ jobs: - name: Test the offline export run: pnpm turbo run test --filter=@coder/offlinedocs + offline-webpack: + name: offline export on webpack + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: ./.github/actions/setup + - name: Build packages + run: pnpm turbo run build --filter='./packages/*' + - name: Sync the fixture corpus (apps/offlinedocs) + run: pnpm --filter @coder/offlinedocs sync + - name: Build the offline export with webpack (apps/offlinedocs) + working-directory: apps/offlinedocs + run: pnpm exec next build --webpack + - name: No API playground code in the webpack export + run: pnpm --filter @coder/offlinedocs playground:check + # A pinned release binary rather than a marketplace action or the Docker # image: the tarball's sha256 is hard-coded here, so a re-pushed tag can't # change what runs, and actionlint picks up the runner's own shellcheck for @@ -380,6 +397,7 @@ jobs: test, test-matrix-guard, node-22, + offline-webpack, actionlint, dist-dry-run, code-samples-format, From f2bff590d92bac161f3f260c10c9a5470f3bf1fb Mon Sep 17 00:00:00 2001 From: Nick Vigilante Date: Fri, 4 Dec 2026 19:31:57 +0000 Subject: [PATCH 2/2] ci: say why the offline webpack job exists Without a note, the job reads as a duplicate of the regular offline build and could be removed. Assisted-by: AI --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e111ab9..b6020759 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -196,6 +196,7 @@ jobs: - name: Test the offline export run: pnpm turbo run test --filter=@coder/offlinedocs + # Turbopack lets node: imports leak into the client bundle; only webpack fails on them. offline-webpack: name: offline export on webpack runs-on: ubuntu-latest