-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathnext.config.ts
More file actions
125 lines (119 loc) · 3.19 KB
/
next.config.ts
File metadata and controls
125 lines (119 loc) · 3.19 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import type { NextConfig } from "next";
import nextra from "nextra";
import createNextIntlPlugin from "next-intl/plugin";
const withNextra = nextra({
latex: true,
search: {
codeblocks: false,
},
});
const nextConfig: NextConfig = {
images: {
unoptimized: true,
},
experimental: {
optimizePackageImports: ["@/components"],
},
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"],
async rewrites() {
return [
{
// Serve docs images from docs/content folder
source: "/docs-images/:path*",
destination: "/api/docs-image/:path*",
},
];
},
async redirects() {
return [
{
source: "/agenda",
destination:
"https://docs.google.com/document/d/1XppfxSOD7AOX1lVVVIPWjpFkrxakfBfVzcybRg17-PM/edit?usp=share_link",
permanent: true,
},
{
source: "/blog",
destination: "/docs/news/latest-news",
permanent: false,
},
{
source: "/code",
destination: "https://github.com/kubestellar/kubestellar",
permanent: true,
},
{
source: "/community",
destination: "https://docs.kubestellar.io/stable/Community/_index/",
permanent: true,
},
{
source: "/drive",
destination:
"https://drive.google.com/drive/u/1/folders/1p68MwkX0sYdTvtup0DcnAEsnXElobFLS",
permanent: true,
},
{
source: "/infomercial",
destination: "https://youtu.be/rCjQAdwvZjk",
permanent: true,
},
{
source: "/join_us",
destination: "https://groups.google.com/g/kubestellar-dev",
permanent: true,
},
{
source: "/joinus",
destination: "https://groups.google.com/g/kubestellar-dev",
permanent: true,
},
{
source: "/ladder",
destination: "https://kubestellar.io/en/ladder",
permanent: true,
},
{
source: "/ladder_stats",
destination:
"https://docs.google.com/spreadsheets/d/16CxUk2tNbTB-Si0qRVwIrI_f19t9HwSby9C1djMN7Sc/edit?usp=sharing",
permanent: true,
},
{
source: "/linkedin",
destination:
"https://www.linkedin.com/feed/hashtag/?keywords=kubestellar",
permanent: true,
},
{
source: "/quickstart",
destination: "https://kubestellar.io/en/quick-installation",
permanent: true,
},
{
source: "/slack",
destination: "https://cloud-native.slack.com/archives/C097094RZ3M",
permanent: true,
},
{
source: "/survey",
destination: "https://forms.gle/Md2381TQ8CcjZv3LA",
permanent: true,
},
{
source: "/tv",
destination: "https://youtube.com/@kubestellar",
permanent: true,
},
{
source: "/youtube",
destination: "https://youtube.com/@kubestellar",
permanent: true,
},
];
},
};
const configWithNextra = withNextra(nextConfig);
// Note: Route-level exclusion is handled in src/middleware.ts (matcher excludes /docs)
const withNextIntl = createNextIntlPlugin("./src/i18n/request.ts");
export default withNextIntl(configWithNextra);