fix(app): use the islands config from the renderer tutorial
Merged
KI
10d ago+18+18+01234567890123456789-17-17-01234567890123456789
Problem
Step 9 of the renderer tutorial uses experimental.serverComponents: { mode: "islands" }. A reader cloning Leaf gets Farm 0.1.86 and the older config spelling.
Change
Pin the app’s core and CLI and the adapter’s development dependency to Farm 0.1.87. Use the tutorial config, update the two example comments, and include the first-time Chromium install in the README.
Verification
From a fresh clone on macOS with Node 24.21.0 and pnpm 8.12.1:
pnpm install --frozen-lockfileinstalled the published packages and built both workspace libraries.pnpm type-checkpassed all three packages.pnpm testpassed 57 tests.pnpm exec playwright install chromiuminstalled the browser.pnpm test:e2epassed 20 Chromium tests against the production build.pnpm test:e2e:devpassed the same 20 against the development server. Both runs covered JSX and .leaf island hydration, client navigation, and both ui-sdk toggle examples.
Summary by cubic
Matches the app's islands config to the renderer tutorial, which uses serverComponents: { mode: "islands" } on Farm 0.1.87. A fresh clone was installing 0.1.84 with the older isolatedClientHydration spelling.
- Pins the app's
@farm.js/coreand@farm.js/cliandfarm-leaf's core dev dependency to 0.1.87. - Updates the comments referencing the old config name.
- Adds the one-time
pnpm exec playwright install chromiumstep to the README.