Skip to content

fix(marketing): ensure CodeBlock is client component#172

Merged
BunsDev merged 6 commits into
mainfrom
okcode/fix-marketing-build-errors
Apr 1, 2026
Merged

fix(marketing): ensure CodeBlock is client component#172
BunsDev merged 6 commits into
mainfrom
okcode/fix-marketing-build-errors

Conversation

@BunsDev

@BunsDev BunsDev commented Apr 1, 2026

Copy link
Copy Markdown
Member

Summary

  • Add explicit "use client" to marketing CodeBlock so hook usage (useState, useEffect, etc.) is valid under Next.js App Router.
  • Fixes the Turbopack compile error from the provided log (CodeBlock.tsx importing React hooks in a server component context).
  • Keep docs/diagnostic notes already present on this branch.

Validation

  • Ran bun run build:marketing successfully with no Turbopack hook errors.

@vercel

vercel Bot commented Apr 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Error Error Apr 1, 2026 11:05am
v0-compute-the-platform-to-build Ready Ready Preview, Open in v0 Apr 1, 2026 11:05am

@github-actions github-actions Bot added size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Apr 1, 2026
@github-actions github-actions Bot added size:M and removed size:L labels Apr 1, 2026
@BunsDev BunsDev merged commit 4b0a149 into main Apr 1, 2026
8 of 10 checks passed
@BunsDev BunsDev deleted the okcode/fix-marketing-build-errors branch April 6, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant