Skip to content

Commit 239d76c

Browse files
fix: 404s (#2835)
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
1 parent 672cc6b commit 239d76c

File tree

6 files changed

+7
-131
lines changed

6 files changed

+7
-131
lines changed

packages/common/formatted-error/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ fn visit_dir(ctx: &mut Ctx, path: PathBuf) -> std::io::Result<()> {
178178
}
179179
})
180180
.collect::<String>();
181-
let documentation = format!("https://rivet.gg/docs/api/errors#{clean_title}");
181+
let documentation = format!("https://rivet.gg/docs/cloud/api/errors#{clean_title}");
182182

183183
ctx.hash_items.push(formatdoc!(
184184
"

site/next.config.ts

Lines changed: 1 addition & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -26,72 +26,7 @@ const nextConfig = {
2626
return [
2727
// Next.js redirects for Cloudflare deployment
2828

29-
// Permanent redirects for common 404s
30-
{
31-
source: '/docs/config',
32-
destination: '/docs/cloud/config',
33-
permanent: true,
34-
},
35-
{
36-
source: '/discord',
37-
destination: 'https://discord.gg/aXYfyNxYVn',
38-
permanent: true,
39-
},
40-
{
41-
source: '/docs/functions',
42-
destination: '/docs/cloud/functions',
43-
permanent: true,
44-
},
45-
{
46-
source: '/docs/general/testing',
47-
destination: '/docs/actors/testing',
48-
permanent: true,
49-
},
50-
{
51-
source: '/docs/local-development',
52-
destination: '/docs/cloud/local-development',
53-
permanent: true,
54-
},
55-
{
56-
source: '/actors/communicating-with-actors',
57-
destination: '/docs/actors/communicating-between-actors',
58-
permanent: true,
59-
},
60-
{
61-
source: '/docs/api',
62-
destination: '/docs/cloud/api',
63-
permanent: true,
64-
},
65-
{
66-
source: '/docs/troubleshooting',
67-
destination: '/docs/cloud/troubleshooting',
68-
permanent: true,
69-
},
70-
{
71-
source: '/docs/edge',
72-
destination: '/docs/general/edge',
73-
permanent: true,
74-
},
75-
{
76-
source: '/docs/edge/',
77-
destination: '/docs/general/edge',
78-
permanent: true,
79-
},
80-
{
81-
source: '/docs/durability',
82-
destination: '/docs/cloud/durability',
83-
permanent: true,
84-
},
85-
{
86-
source: '/clients/javascript',
87-
destination: '/docs/clients/javascript',
88-
permanent: true,
89-
},
90-
{
91-
source: '/docs/networking',
92-
destination: '/docs/cloud/networking',
93-
permanent: true,
94-
},
29+
// Permanent redirects for common 404s (consolidated from duplicates)
9530

9631
// Convenience Redirects
9732
{
@@ -286,70 +221,11 @@ const nextConfig = {
286221
},
287222

288223
// Missing documentation pages
289-
{
290-
source: '/docs/functions',
291-
destination: '/docs/cloud/functions',
292-
permanent: false,
293-
},
294224
{
295225
source: '/docs/containers',
296226
destination: '/docs/cloud/containers',
297227
permanent: false,
298228
},
299-
{
300-
source: '/docs/durability',
301-
destination: '/docs/cloud/durability',
302-
permanent: false,
303-
},
304-
305-
// Discord redirect
306-
{
307-
source: '/discord',
308-
destination: 'https://discord.gg/aXYfyNxYVn',
309-
permanent: false,
310-
},
311-
312-
// Additional 404 fixes from SEO audit
313-
{
314-
source: '/docs/config/',
315-
destination: '/docs/cloud/config',
316-
permanent: true,
317-
},
318-
{
319-
source: '/docs/general/testing/',
320-
destination: '/docs/actors/testing',
321-
permanent: true,
322-
},
323-
{
324-
source: '/docs/local-development/',
325-
destination: '/docs/cloud/local-development',
326-
permanent: true,
327-
},
328-
{
329-
source: '/docs/api/',
330-
destination: '/docs/cloud/api',
331-
permanent: true,
332-
},
333-
{
334-
source: '/docs/troubleshooting/',
335-
destination: '/docs/cloud/troubleshooting',
336-
permanent: true,
337-
},
338-
{
339-
source: '/docs/durability/',
340-
destination: '/docs/cloud/durability',
341-
permanent: true,
342-
},
343-
{
344-
source: '/clients/javascript/',
345-
destination: '/docs/clients/javascript',
346-
permanent: true,
347-
},
348-
{
349-
source: '/docs/networking/',
350-
destination: '/docs/cloud/networking',
351-
permanent: true,
352-
},
353229

354230
];
355231
},

site/src/app/(v2)/(marketing)/pricing/PricingPageClient.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function PricingTable() {
221221
"string" ? (
222222
feature.name === "Regions" ? (
223223
<a
224-
href="https://rivet.gg/docs/edge"
224+
href="https://rivet.gg/docs/general/edge"
225225
target="_blank"
226226
rel="noopener noreferrer"
227227
className="text-sm text-white underline hover:brightness-125"

site/src/content/docs/cloud/api/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ All API requests require [authentication tokens](/docs/cloud/tokens). Use these
1111
- **[Actors](/docs/actors)** - Stateful serverless containers
1212
- **[Builds](/docs/config)** - Code deployments
1313
- **[Routes](/docs/cloud/networking)** - HTTP routing configuration
14-
- **[Regions](/docs/edge)** - Global deployment locations
14+
- **[Regions](/docs/general/edge)** - Global deployment locations
1515

1616
## SDKs
1717

site/src/content/docs/cloud/solutions/game-servers.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Rivet's global edge network allows you to deploy game servers in multiple region
230230

231231
### Available Regions
232232

233-
Rivet offers server deployments across multiple geographic regions. See the list of available regions [here](/docs/edge).
233+
Rivet offers server deployments across multiple geographic regions. See the list of available regions [here](/docs/general/edge).
234234

235235
To fetch the available regions dynamically, use:
236236

@@ -882,7 +882,7 @@ When creating game servers with [`actors.create`](/docs/cloud/api/actors/create)
882882
buildTags: { name: "game-server", current: "true" }
883883
```
884884

885-
- **Region Selection**: Deploy to [specific regions](/docs/edge) for lower latency
885+
- **Region Selection**: Deploy to [specific regions](/docs/general/edge) for lower latency
886886
```typescript
887887
region: "atl" // Atlanta
888888
```

site/src/posts/2025-06-10-rivet-functions-launch/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ Announcing Rivet Functions – open-source serverless for your backend logic.
1616

1717
## Getting Started
1818

19-
Ready to deploy your first function? Check out the Functions docs at [rivet.gg/docs/functions](https://rivet.gg/docs/functions) to get up and running in minutes.
19+
Ready to deploy your first function? Check out the Functions docs at [rivet.gg/docs/cloud/functions](https://rivet.gg/docs/cloud/functions) to get up and running in minutes.

0 commit comments

Comments
 (0)