Skip to content

Commit 53ad79d

Browse files
fix the OG image in the new post (#6938)
Co-authored-by: Kamil Kisiela <[email protected]>
1 parent ad464c0 commit 53ad79d

File tree

3 files changed

+40
-35
lines changed

3 files changed

+40
-35
lines changed

packages/web/docs/src/app/blog/(posts)/welcome-hive-router/components.tsx

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function TableRow({ className, ...props }: React.ComponentProps<'tr'>) {
3636
<tr
3737
data-slot="table-row"
3838
className={cn(
39-
'border-b border-neutral-500 transition-colors hover:bg-neutral-400/20 dark:border-neutral-800 dark:hover:bg-neutral-800/25',
39+
'hover:bg-beige-100 border-beige-400 border-b transition-colors hover:transition-none dark:border-neutral-800 dark:hover:bg-neutral-800/25',
4040
className,
4141
)}
4242
{...props}
@@ -67,7 +67,7 @@ function TableCaption({ className, ...props }: React.ComponentProps<'caption'>)
6767
return (
6868
<caption
6969
data-slot="table-caption"
70-
className={cn('text-sm text-neutral-500 dark:text-neutral-400', className)}
70+
className={cn('mt-2 text-sm text-green-800 dark:text-neutral-400', className)}
7171
{...props}
7272
/>
7373
);
@@ -129,36 +129,36 @@ export function BenchmarkResultsTable() {
129129
return (
130130
<Table className="mt-6 font-mono">
131131
<TableHeader>
132-
<TableRow className="bg-neutral-400/50 dark:bg-neutral-800/50">
132+
<TableRow className="bg-beige-100 dark:bg-neutral-800/50">
133133
<TableHead className="w-[100px]">
134134
Gateway
135135
<br />
136-
<span className="text-neutral-600 dark:text-neutral-400">version</span>
136+
<span className="text-green-800 dark:text-neutral-400">version</span>
137137
</TableHead>
138138
<TableHead className="text-center">
139139
RPS
140140
<br />
141-
<span className="text-neutral-600 dark:text-neutral-400">reqs/s</span>
141+
<span className="text-green-800 dark:text-neutral-400">reqs/s</span>
142142
</TableHead>
143143
<TableHead className="text-center">
144144
P95
145145
<br />
146-
<span className="text-neutral-600 dark:text-neutral-400">ms</span>
146+
<span className="text-green-800 dark:text-neutral-400">ms</span>
147147
</TableHead>
148148
<TableHead className="text-center">
149149
P99.9
150150
<br />
151-
<span className="text-neutral-600 dark:text-neutral-400">ms</span>
151+
<span className="text-green-800 dark:text-neutral-400">ms</span>
152152
</TableHead>
153153
<TableHead className="text-center">
154154
CPU
155155
<br />
156-
<span className="text-neutral-600 dark:text-neutral-400">max %</span>
156+
<span className="text-green-800 dark:text-neutral-400">max %</span>
157157
</TableHead>
158158
<TableHead className="text-center">
159159
MEM
160160
<br />
161-
<span className="text-neutral-600 dark:text-neutral-400">max MB</span>
161+
<span className="text-green-800 dark:text-neutral-400">max MB</span>
162162
</TableHead>
163163
</TableRow>
164164
</TableHeader>
@@ -168,9 +168,7 @@ export function BenchmarkResultsTable() {
168168
<TableRow key={row.name}>
169169
<TableCell>
170170
<div className="font-medium">{row.name}</div>
171-
<span className="text-xs text-neutral-500 dark:text-neutral-400">
172-
{row.version}
173-
</span>
171+
<span className="text-xs text-green-800 dark:text-neutral-400">{row.version}</span>
174172
</TableCell>
175173
<TableCell className="text-center">{row.rps}</TableCell>
176174
<TableCell className="text-center">{row.p95}</TableCell>
@@ -203,7 +201,7 @@ export function AuditResultsTable() {
203201
return (
204202
<Table className="mt-6 font-mono">
205203
<TableHeader>
206-
<TableRow className="bg-neutral-400/50 dark:bg-neutral-800/50">
204+
<TableRow className="bg-beige-100 hover:bg-beige-100 dark:bg-neutral-800/50 hover:dark:bg-neutral-800/50">
207205
<TableHead className="w-[100px]">Gateway</TableHead>
208206
<TableHead className="text-center">Compatibility</TableHead>
209207
<TableHead className="text-center">Test Cases</TableHead>
@@ -217,7 +215,7 @@ export function AuditResultsTable() {
217215
<TableCell className="font-medium">{row.name}</TableCell>
218216
<TableCell className="text-center font-medium">
219217
{((row.okTestCases * 100) / testCasesTotal).toFixed(2)}
220-
<span className="text-neutral-800 dark:text-neutral-400">%</span>
218+
<span className="text-green-800 dark:text-neutral-400">%</span>
221219
</TableCell>
222220
<TableCell className="space-x-2 text-center">
223221
<span className="text-green-600 dark:text-green-500">{row.okTestCases}</span>
@@ -270,15 +268,15 @@ export function RPSRace() {
270268
onMouseLeave={() => setHovered(null)}
271269
>
272270
<div className="mb-1 flex items-center justify-between">
273-
<span className="text-sm text-neutral-800 dark:text-neutral-300">{d.name}</span>
274-
<span className="text-zink-800 text-sm tabular-nums dark:text-zinc-400">
271+
<span className="text-sm text-green-900 dark:text-neutral-300">{d.name}</span>
272+
<span className="text-sm tabular-nums text-green-800 dark:text-neutral-400">
275273
{d.name === first.name && hovered
276274
? `${(first.rps / hovered.rps).toFixed(1)}x faster | `
277275
: null}
278276
{d.rps.toFixed(0)} rps
279277
</span>
280278
</div>
281-
<div className="h-[5px] overflow-hidden bg-zinc-200 dark:bg-zinc-800">
279+
<div className="h-[5px] overflow-hidden bg-blue-200 dark:bg-zinc-800">
282280
<div
283281
className="h-full bg-sky-600/90 transition-[width] duration-1000 ease-out dark:bg-sky-600"
284282
style={{ width: `${(d.rps / max) * 100}%` }}
@@ -300,11 +298,11 @@ export function LatencyBands() {
300298
<div key={d.name} className="">
301299
<div className="mb-1 flex items-center justify-between text-sm">
302300
<span>{d.name}</span>
303-
<span className="tabular-nums text-neutral-500 dark:text-neutral-400">
301+
<span className="tabular-nums text-green-800 dark:text-neutral-400">
304302
p95 {d.p95.toFixed(1)} ms | p99.9 {d.p99_9.toFixed(1)} ms
305303
</span>
306304
</div>
307-
<div className="relative h-4 border border-zinc-300 bg-zinc-200 dark:border-zinc-800 dark:bg-zinc-900">
305+
<div className="border-beige-300 bg-beige-100 relative h-4 border dark:border-zinc-800 dark:bg-zinc-900">
308306
{/*<div className="absolute inset-y-0 left-0 right-0 m-2 border-b border-zinc-800" />*/}
309307
<div
310308
title={`p95 ${d.p95}ms`}
@@ -319,7 +317,7 @@ export function LatencyBands() {
319317
</div>
320318
</div>
321319
))}
322-
<div className="text-center text-xs text-neutral-500 dark:text-neutral-400">
320+
<div className="text-center text-xs text-green-700 dark:text-neutral-400">
323321
Axis scaled to the highest p99.9 across gateways
324322
</div>
325323
</div>
@@ -329,13 +327,13 @@ export function LatencyBands() {
329327
function HighlightItem(props: { icon: React.ReactNode; title: string; description: string }) {
330328
return (
331329
<div className="relative pl-16">
332-
<div className="font-semibold text-zinc-600 dark:text-white">
333-
<div className="absolute left-0 top-0 flex size-10 items-center justify-center rounded-lg bg-neutral-600/50 dark:bg-neutral-600/20">
330+
<div className="font-semibold">
331+
<div className="bg-beige-100 absolute left-0 top-0 flex size-10 items-center justify-center rounded-lg dark:bg-neutral-600/20">
334332
{props.icon}
335333
</div>
336334
{props.title}
337335
</div>
338-
<div className="text-sm text-neutral-500 dark:text-neutral-400">{props.description}</div>
336+
<div className="text-sm text-green-800 dark:text-neutral-400">{props.description}</div>
339337
</div>
340338
);
341339
}

packages/web/docs/src/app/blog/(posts)/welcome-hive-router/page.mdx

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
---
2-
tags: [platform, graphql, graphql-federation, graphql-hive]
3-
featured: true
4-
title: 'Hive Router: A High-Performance GraphQL Federation Gateway'
5-
authors: [kamil]
6-
date: 2025-09-02
7-
description:
8-
Discover Hive Router, a new high-performance and open-source GraphQL Federation gateway. Built in
9-
Rust, it's a production-ready alternative to Apollo Router, offering superior GraphQL gateway
10-
performance and full Apollo Federation compatibility.
11-
---
12-
131
import {
142
AuditResultsTable,
153
BenchmarkResultsTable,
@@ -19,6 +7,23 @@ import {
197
} from './components'
208
import { ZeroCopyBlocks } from './zero-copy-json'
219

10+
export const metadata = {
11+
tags: ['platform', 'graphql', 'graphql-federation', 'graphql-hive'],
12+
featured: true,
13+
title: 'Hive Router: A High-Performance GraphQL Federation Gateway',
14+
authors: ['kamil'],
15+
date: '2025-09-02',
16+
description:
17+
"Discover Hive Router, a new high-performance and open-source GraphQL Federation gateway. Built in Rust, it's a production-ready alternative to Apollo Router, offering superior GraphQL gateway performance and full Apollo Federation compatibility.",
18+
openGraph: {
19+
images: [
20+
new URL('./opengraph-image.png', import.meta.url)
21+
.toString()
22+
.replace(process.env.NEXT_BASE_PATH || '', '')
23+
]
24+
}
25+
}
26+
2227
Today, we're excited to introduce Hive Router, a new open-source GraphQL federation gateway.
2328

2429
[GraphQL federation](http://the-guild.dev/graphql/hive/federation) is now the standard way to scale

packages/web/docs/src/app/docs/[[...mdxPath]]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ export async function generateMetadata(
2727
...docsMetadata.openGraph,
2828
};
2929

30+
console.log('Generated metadata for', mdxPath, docsMetadata);
31+
3032
return docsMetadata;
3133
}
3234

0 commit comments

Comments
 (0)