Repository navigation
ci: build the offline export with webpack - #421
Open
nickvigilante wants to merge 2 commits into
Open
nickvigilante wants to merge 2 commits into
nickvigilante wants to merge 2 commits into
Conversation
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
Jesswinters
approved these changes
Dec 4, 2026
Jesswinters
left a comment
Collaborator
There was a problem hiding this comment.
Looks good. The job is small, it follows the existing patterns in ci.yml, and gating build & check on it is the right call. CI is green.
Optional nits (P2, not blocking):
- Say why the job exists. Add a one-line comment above
offline-webpack, for example: "Turbopack letsnode:imports leak into the client bundle; only webpack fails on them." Without it, someone may later remove the job as a duplicate of the regular offline build. - Scope of checks. The job runs
playground:checkbut not the csp/annotations/analytics checks or relocate-twins on the webpack output. That's fine if the goal is only "webpack builds". A short note in the comment would make the scope clear. persist-credentials: falseon checkout. This is low priority because the other jobs inci.ymldon't set it either. It could be a small follow-up that covers all jobs.
Coder Agents generated this review for @Jesswinters.
Without a note, the job reads as a duplicate of the regular offline build and could be removed. Assisted-by: AI
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge order
Independent; can merge any time.
Summary
Adds a CI job,
offline export on webpack, that buildsapps/offlinedocswithnext build --webpackon the fixture corpus and runsplayground:checkon the output. The offline kit supports webpack, but nothing built with it, so anode:import reaching the bundle from the@coder/docs-configroot was only caught by a manual check. A webpack-only breakage now fails CI.Design
The diff is one new job plus its entry in the
needs:list ofbuild & check; nothing else in.github/workflows/changed, and there are no secret references or new triggers. The job uses the repo's setup composite action and the same pinned checkout SHA as the other jobs, builds the packages, runs the app'ssync(which also runsfumadocs-mdxviapostsync;next buildalone does not sync, sinceprebuildonly fires forpnpm build), thennext build --webpackandpnpm --filter @coder/offlinedocs playground:check. It doesn't run the relocate-twins and semantic-index steps, since those don't depend on the bundler. The job runs in parallel with every other job, because nothingneedsit except the aggregator. Locally the sync plus webpack build took about 30 seconds on a warm machine, so expect roughly 2 to 3 minutes of CI wall time including setup, with no added time on the critical path unless it becomes the slowest job.QA
Nothing to see on the site; this is a CI-only change. The job shows it working on this PR's own Checks tab, as
offline export on webpack, and it should be listed in thebuild & checkneeds output.Pages to compare
Not applicable for a CI-only change.
Testing
On the fixture corpus with Node 24:
pnpm --filter @coder/offlinedocs sync, thenpnpm exec next build --webpackinapps/offlinedocs(about 30s, passes), thenplayground:check(passes, no playground code). To prove it catches the original failure, I temporarily addedimport "node:fs"to the@coder/docs-configroot and imported the root from a client component in the offline app; the webpack build failed withFailed to compileonnode:fs. I reverted that change and it is not committed.apps/docs/scripts/workflow-secrets.test.mjspasses (11 of 11) and Oxfmt reports the workflow formatted.actionlintandshellcheckare not installed here, sopnpm lint:actionswas not run locally; theactionlintjob in CI covers it.Upstream
No. This is this repository's own CI and has nothing to do with fumadocs-ui or fumadocs-core.
Linear: https://linear.app/codercom/issue/DOCS-1912/test-the-webpack-offline-build-in-ci
🤖 Built with AI assistance.