-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path[redirect].paths.ts
More file actions
52 lines (51 loc) · 1.68 KB
/
[redirect].paths.ts
File metadata and controls
52 lines (51 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const redirects = [
// Blogs that were shared on social media before switching to VitePress (i.e. 2025-08-12)
{
from: 'blog/2025/03/05/lcm-configuration-installation-reconsidered',
to: 'blog/2025-03-05-lcm-configuration-installation-reconsidered.md'
},
{
from: 'blog/2025/03/05/lcm-configuration-installation-reconsidered',
to: 'blog/2025-03-05-lcm-configuration-installation-reconsidered.md'
},
{
from: 'blog/2025/03/25/kcp-multi-tenant-control-planes',
to: 'blog/2025-03-25-kcp-multi-tenant-control-planes.md'
},
{
from: 'blog/2025/06/02/openbao-namespace-support',
to: 'blog/2025-06-02-openbao-namespace-support.md'
},
{
from: 'blog/2025/06/20/open-resource-discover-ord-new-standard',
to: 'blog/2025-06-20-open-resource-discover-ord-new-standard.md'
},
{
from: 'blog/2025/08/07/kubernetes-api-server-and-controller-archetypes',
to: 'blog/2025-08-07-kubernetes-api-server-and-controller-archetypes.md'
},
// Blogs that were shared internally for review and renamed later
{
from: 'blog/2025-08-25-enabling-ai-workloads-on-kubernetes-with-nvidia-gpu-operator-on-gardener-gardenlinux',
to: 'blog/2025-08-25-garden-linux-enabling-ai-workloads-with-nvidia-gpus.md'
},
// Links that were shared on social media before changing directory structure
{
from: 'best-practices/digital-twins/controller',
to: 'docs/best-practices/digital-twins/controller.md'
}
]
export default {
paths() {
const paths = redirects
.map(({ from, to }) => {
return {
params: {
redirect: from,
redirectUrlAbsolute: '/' + to.replace('.md', ''),
}
}
})
return paths
}
}