Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions apps/marketing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Marketing App

## Prerequisites

- Install monorepo dependencies from the repo root before running marketing scripts:

```bash
bun install
```

## Build

```bash
bun run build:marketing
```

If the build fails with:

```text
/bin/bash: next: command not found
```

rerun:

```bash
bun install
bun run build:marketing
```

This usually means the workspace dependencies were not yet installed for the current environment.

If you see a build error about `CodeBlock.tsx` or `GetStarted.tsx` importing `useState`/`useEffect` in a Server Component:

- You are likely running an older marketing checkout where those components still exist.
- Switch to the current branch in this PR (`fix-marketing-build-errors`) and rerun install/build.
- In that older snapshot, the fix is to add `"use client"` at the top of those client-only components.
4 changes: 3 additions & 1 deletion apps/marketing/components/CodeBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import { useState, useCallback, useRef, useEffect } from "react";

const svgProps = {
Expand Down Expand Up @@ -31,7 +33,7 @@ interface CodeBlockProps {

export function CodeBlock({ code, label }: CodeBlockProps) {
const [copied, setCopied] = useState(false);
const timerRef = useRef<ReturnType<typeof setTimeout>>(null);
const timerRef = useRef<ReturnType<typeof setTimeout> | null>(null);

useEffect(() => {
return () => {
Expand Down
Loading