fix(app): use the islands config from the renderer tutorial

Merged
KI
10d ago
+18-17

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-lockfile installed the published packages and built both workspace libraries.
  • pnpm type-check passed all three packages.
  • pnpm test passed 57 tests.
  • pnpm exec playwright install chromium installed the browser.
  • pnpm test:e2e passed 20 Chromium tests against the production build.
  • pnpm test:e2e:dev passed 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/core and @farm.js/cli and farm-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 chromium step to the README.