Skip to content

Commit 21cd198

Browse files
committed
Merge branch 'main' into docs/update-comprehensive-readmes
2 parents 02df24f + 4b0a149 commit 21cd198

9 files changed

Lines changed: 58 additions & 10 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ bun dev:desktop # desktop shell + electron dev flow
8787
bun dev:marketing # marketing site
8888
```
8989

90+
Build marketing directly:
91+
92+
```bash
93+
bun install
94+
bun run build:marketing
95+
```
96+
97+
If `bun run build:marketing` fails with `next: command not found`, run `bun install` first to restore workspace dependencies.
98+
9099
### Package scoped examples
91100

92101
```bash

apps/desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@okcode/desktop",
3-
"version": "0.0.9",
3+
"version": "0.0.12",
44
"private": true,
55
"main": "dist-electron/main.js",
66
"scripts": {

apps/marketing/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Marketing App
2+
3+
## Prerequisites
4+
5+
- Install monorepo dependencies from the repo root before running marketing scripts:
6+
7+
```bash
8+
bun install
9+
```
10+
11+
## Build
12+
13+
```bash
14+
bun run build:marketing
15+
```
16+
17+
If the build fails with:
18+
19+
```text
20+
/bin/bash: next: command not found
21+
```
22+
23+
rerun:
24+
25+
```bash
26+
bun install
27+
bun run build:marketing
28+
```
29+
30+
This usually means the workspace dependencies were not yet installed for the current environment.
31+
32+
If you see a build error about `CodeBlock.tsx` or `GetStarted.tsx` importing `useState`/`useEffect` in a Server Component:
33+
34+
- You are likely running an older marketing checkout where those components still exist.
35+
- Switch to the current branch in this PR (`fix-marketing-build-errors`) and rerun install/build.
36+
- In that older snapshot, the fix is to add `"use client"` at the top of those client-only components.

apps/marketing/components/CodeBlock.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
import { useState, useCallback, useRef, useEffect } from "react";
24

35
const svgProps = {
@@ -31,7 +33,7 @@ interface CodeBlockProps {
3133

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

3638
useEffect(() => {
3739
return () => {

apps/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "okcodes",
3-
"version": "0.0.9",
3+
"version": "0.0.12",
44
"license": "MIT",
55
"repository": {
66
"type": "git",

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@okcode/web",
3-
"version": "0.0.9",
3+
"version": "0.0.12",
44
"private": true,
55
"type": "module",
66
"scripts": {

bun.lock

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@okcode/contracts",
3-
"version": "0.0.9",
3+
"version": "0.0.12",
44
"private": true,
55
"files": [
66
"dist"

vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://openapi.vercel.sh/vercel.json",
3-
"buildCommand": "cd apps/marketing && bun run build:marketing",
3+
"buildCommand": "bun run build:marketing",
44
"installCommand": "bun install",
55
"outputDirectory": "apps/marketing/.next"
66
}

0 commit comments

Comments
 (0)