Skip to content

Commit d25aced

Browse files
fix: links and orphan pages (#2824)
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
1 parent b9d6013 commit d25aced

File tree

26 files changed

+92
-49
lines changed

26 files changed

+92
-49
lines changed

site/src/app/(v2)/(blog)/blog/[...slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ async function OtherArticles({ slug }) {
220220
.slice(0, 3)
221221
.map((article) => (
222222
<li key={article.slug} className="py-1">
223-
<Link href={`/blog/${article.slug}`}>
223+
<Link href={article.category.id === "changelog" ? `/changelog/${article.slug}` : `/blog/${article.slug}`}>
224224
{article.title}
225225
</Link>
226226
</li>

site/src/app/(v2)/(blog)/blog/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function Article({
2626
image,
2727
category,
2828
}) {
29-
const href = `/blog/${slug}`;
29+
const href = category.id === "changelog" ? `/changelog/${slug}` : `/blog/${slug}`;
3030
return (
3131
<Link href={href} className="size-full">
3232
<article className="bg-card hover:border-primary flex size-full flex-col items-start justify-between rounded-md border p-4 transition-colors">

site/src/app/(v2)/(blog)/changelog/[...slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async function OtherArticles({ slug }) {
141141
.slice(0, 3)
142142
.map((article) => (
143143
<li key={article.slug} className="py-1">
144-
<Link href={`/blog/${article.slug}`}>
144+
<Link href={`/changelog/${article.slug}`}>
145145
{article.title}
146146
</Link>
147147
</li>

site/src/app/(v2)/(marketing)/rivet-vs-cloudflare-workers/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ const MigrationSection = () => {
898898
</p>
899899
<div className="mt-6">
900900
<Link
901-
href="/talk-to-an-engineer "
901+
href="/talk-to-an-engineer"
902902
className="inline-flex items-center px-5 py-2.5 bg-white text-black rounded-md hover:bg-white/90 transition-colors no-underline"
903903
>
904904
Talk to an engineer

site/src/content/docs/actors/actions.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const result = await counter.increment(42);
4747
console.log(result); // The value returned by the action
4848
```
4949

50-
Learn more about [communicating with actors from the frontend](/docs/actors/communicating-with-actors).
50+
Learn more about [communicating with actors from the frontend](/docs/actors/communicating-between-actors).
5151

5252
</Tab>
5353
<Tab title="Backend (registry.runServer)">
@@ -67,7 +67,7 @@ const result = await counter.increment(42);
6767
console.log(result);
6868
```
6969

70-
Learn more about [communicating with actors from the backend](/docs/actors/communicating-with-actors).
70+
Learn more about [communicating with actors from the backend](/docs/actors/communicating-between-actors).
7171

7272
</Tab>
7373
<Tab title="Actor-to-Actor (c.client())">
@@ -232,7 +232,7 @@ const counter = actor({
232232

233233
By default, actors' actions are only accessible from your server-side client.
234234

235-
In order to expose actions publicly to the external client, you'll need to define `onAuth`. More documentation on authentication is available [here](/docs/general/authentication). Read more about the [types of clients](/docs/actors/clients)
235+
In order to expose actions publicly to the external client, you'll need to define `onAuth`. More documentation on authentication is available [here](/docs/actors/authentication). Read more about the [types of clients](/docs/actors/clients)
236236

237237
## Streaming Return Data
238238

site/src/content/docs/actors/clients.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ There are several ways to create a client for communicating with actors:
3838
serve(app);
3939
```
4040

41-
This client doesn't [require authentication](/docs/general/authentication).
41+
This client doesn't [require authentication](/docs/actors/authentication).
4242
</Tab>
4343

4444
<Tab title="External Client">
@@ -67,7 +67,7 @@ There are several ways to create a client for communicating with actors:
6767
});
6868
```
6969

70-
This client [requires authentication](/docs/general/authentication).
70+
This client [requires authentication](/docs/actors/authentication).
7171

7272
**Important**: Use `import type` when importing the registry type in order to
7373
avoid accidentally bundling your backend code.
@@ -97,7 +97,7 @@ There are several ways to create a client for communicating with actors:
9797
});
9898
```
9999

100-
This client doesn't [require authentication](/docs/general/authentication).
100+
This client doesn't [require authentication](/docs/actors/authentication).
101101

102102
Read more about [communicating between actors](/docs/actors/communicating-between-actors).
103103
</Tab>
@@ -432,7 +432,7 @@ const protectedActor = actor({
432432
});
433433
```
434434

435-
Learn more about [authentication patterns](/docs/general/authentication).
435+
Learn more about [authentication patterns](/docs/actors/authentication).
436436

437437
## Type Safety
438438

site/src/content/docs/actors/connections.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,4 +251,4 @@ function ConnectionErrorHandler() {
251251

252252
## Offline & Auto-Reconnection
253253

254-
See [client documentation](/docs/actors/communicating-with-actors) for details on reconnection behavior.
254+
See [client documentation](/docs/actors/communicating-between-actors) for details on reconnection behavior.

site/src/content/docs/actors/fetch-and-websocket-handler.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ If you are using the external client, authentication is handled through the `onA
542542

543543
If you are using the server-side client, then authentication is skipped by default.
544544

545-
See the [authentication documentation](/docs/general/authentication) for detailed information on implementing authentication patterns.
545+
See the [authentication documentation](/docs/actors/authentication) for detailed information on implementing authentication patterns.
546546

547547

548548
## State Saves

site/src/content/docs/actors/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const room = client.chatRoom.getOrCreate(["general"]);
110110
const message = await room.sendMessage("user-123", "Hello everyone!");
111111
```
112112

113-
Learn more about [actions](/docs/actors/actions) and [communicating with actors](/docs/actors/communicating-with-actors).
113+
Learn more about [actions](/docs/actors/actions) and [communicating with actors](/docs/actors/communicating-between-actors).
114114

115115
### Real-time Communication & Events
116116

@@ -147,7 +147,7 @@ connection.on("newBid", (data) => {
147147
await auction.placeBid(150);
148148
```
149149

150-
Learn more about [events](/docs/actors/events) and [client communication](/docs/actors/communicating-with-actors).
150+
Learn more about [events](/docs/actors/events) and [client communication](/docs/actors/communicating-between-actors).
151151

152152
### Scheduling & Lifecycle
153153

site/src/content/docs/actors/lifecycle.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ const chatRoom = actor({
222222
});
223223
```
224224

225-
Connections cannot interact with the actor until this method completes successfully. Throwing an error will abort the connection. This can be used for authentication - see [Authentication](/docs/general/authentication) for details.
225+
Connections cannot interact with the actor until this method completes successfully. Throwing an error will abort the connection. This can be used for authentication - see [Authentication](/docs/actors/authentication) for details.
226226

227227
### `onConnect`
228228

0 commit comments

Comments
 (0)