Skip to content

chore: upgrade Next.js and related dependencies#34

Open
pierrelevaillant wants to merge 1 commit intomainfrom
update-next-deps-2f15
Open

chore: upgrade Next.js and related dependencies#34
pierrelevaillant wants to merge 1 commit intomainfrom
update-next-deps-2f15

Conversation

@pierrelevaillant
Copy link
Copy Markdown
Contributor

Summary

  • Upgrades the demo site to Next.js 16.2.4 with React 19.2.x and bumps Tailwind CSS / PostCSS in site to current patch releases (lockfile refreshed).
  • Turborepo 2.9 no longer accepts the previous root + nested extends setup reliably; package-specific tasks are merged into the root turbo.json and site/turbo.json is removed.
  • TypeScript / tsup: adds @types/node and includes node in tsconfig so declaration builds resolve process.env.
  • Next build without secrets: defers Liveblocks construction in the auth route and reactions server component so next build does not fail when LIVEBLOCKS_SECRET_KEY is unset (runtime still returns 403 / defaults as before when misconfigured).
  • Tests: after vi.restoreAllMocks(), re-enable vitest-fetch-mock so emoji data tests keep working when other tests spy on fetch.

Verification

  • npm run lint
  • npm test
  • npm run build:site (no Liveblocks env required)
  • cd site && npm test
Open in Web Open in Cursor 

- Bump site next/react/react-dom and tailwind/postcss stack; refresh lockfile
- Merge package turbo config into root for Turborepo 2.9 (remove nested turbo.json)
- Add @types/node for tsup DTS when using process.env
- Lazy-init Liveblocks clients so next build works without secrets
- Re-enable vitest-fetch-mock after vi.restoreAllMocks in emoji tests

Co-authored-by: Le Vaillant Pierre <pierrelevaillant@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants