@@ -26,6 +26,73 @@ const nextConfig = {
26
26
return [
27
27
// Next.js redirects for Cloudflare deployment
28
28
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
+ } ,
95
+
29
96
// Convenience Redirects
30
97
{
31
98
source : '/docs' ,
@@ -242,6 +309,48 @@ const nextConfig = {
242
309
permanent : false ,
243
310
} ,
244
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
+ } ,
353
+
245
354
] ;
246
355
} ,
247
356
webpack : ( config ) => {
0 commit comments