-
Notifications
You must be signed in to change notification settings - Fork 50
/
next.config.mjs
76 lines (73 loc) · 1.96 KB
/
next.config.mjs
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
import { withPlausibleProxy } from "next-plausible"
import nextra from "nextra"
const withNextra = nextra({
theme: "nextra-theme-docs",
themeConfig: "./src/theme.config.tsx",
flexsearch: {
codeblocks: true
},
readingTime: true,
staticImage: true,
defaultShowCopyCode: true
})
export default withPlausibleProxy()(
withNextra({
reactStrictMode: true,
// i18n: {
// locales: ["en"],
// defaultLocale: "en"
// },
async redirects() {
return [
{
source: "/workflows/:path*",
destination: "/framework/workflows/:path*",
permanent: true
},
{
source: "/browser-extension/:path*",
destination: "/framework/:path*",
permanent: true
},
{
source: "/framework-api/:path*",
destination: "/framework/:path*",
permanent: true
},
{
source: "/customization/:path*",
destination: "/framework/customization/:path*",
permanent: true
},
{
source: "/cs",
destination: "/framework/content-scripts",
permanent: true
},
{
source: "/csui",
destination: "/framework/content-scripts-ui",
permanent: true
},
{
source: "/exp",
destination:
"https://github.com/PlasmoHQ/plasmo/issues/new?assignees=&labels=documentation&template=2.example.yml&title=%5BEXP%5D+",
permanent: true
},
{
source: "/rfc",
destination:
"https://github.com/PlasmoHQ/plasmo/issues/new?assignees=&labels=enhancement&template=0.rfc.yml&title=%5BRFC%5D+",
permanent: true
},
{
source: "/bug",
destination:
"https://github.com/PlasmoHQ/plasmo/issues/new?assignees=&labels=bug%2Ctriage&template=1.bug.yml&title=%5BBUG%5D+",
permanent: true
}
]
}
})
)