Skip to content

Commit 76d0373

Browse files
committed
Small fixes
1 parent 76bc014 commit 76d0373

File tree

1 file changed

+10
-7
lines changed
  • src/content/docs/workers/tutorials/generate-dynamic-og-images-using-workers

1 file changed

+10
-7
lines changed

src/content/docs/workers/tutorials/generate-dynamic-og-images-using-workers/index.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ languages:
1414
spotlight:
1515
author: Mohammed Abdulatef Al-Musaibeli
1616
author_bio_link: https://github.com/mohdlatif
17-
author_bio_source: github
17+
author_bio_source: GitHub
1818
---
1919

2020
import { PackageManagers, Render, Tabs, TabItem } from "~/components";
@@ -54,7 +54,7 @@ When a user requests an OG image, the following happens:
5454
Here is how the process flows:
5555

5656
```mermaid
57-
graph LR
57+
graph TD
5858
A[User Request] -->|URL Parameters| B[Cloudflare Worker]
5959
B --> C[Process Content]
6060
C --> D[Load Fonts]
@@ -77,8 +77,11 @@ graph LR
7777
<Render file="prereqs" product="workers" />
7878

7979
3. Install [Bun](https://bun.sh/) on your machine.
80-
4. Basic familiarity with TypeScript and React.
81-
5. A text editor or IDE of your choice.
80+
81+
You should also have:
82+
83+
- Basic familiarity with TypeScript and React.
84+
- A text editor or IDE of your choice.
8285

8386
## 1. Set up your development environment
8487

@@ -132,7 +135,7 @@ pnpm add -d @cloudflare/workers-types @types/bun @types/react @types/react-dom @
132135

133136
## 3. Configure project settings
134137

135-
### package.json configuration
138+
### Update package.json
136139

137140
Update the `package.json` file to include the type module and deployment scripts:
138141

@@ -152,7 +155,7 @@ Update the `package.json` file to include the type module and deployment scripts
152155

153156
The `type: "module"` field enables ES modules support, and the `--minify` flag in the deploy script ensures your Worker code is optimized for production.
154157

155-
### TypeScript configuration
158+
### Configure TypeScript
156159

157160
Update the `tsconfig.json` file with the following configuration:
158161

@@ -201,7 +204,7 @@ Key TypeScript configuration features:
201204

202205
Before starting, ensure your `wrangler.toml` includes these essential configurations:
203206

204-
```toml
207+
```toml title="wrangler.toml"
205208
compatibility_date = "2024-11-06"
206209
compatibility_flags = [ "nodejs_compat_v2" ]
207210
assets = { directory = "public", binding = "ASSETS" }

0 commit comments

Comments
 (0)