-
-
Notifications
You must be signed in to change notification settings - Fork 158
Expand file tree
/
Copy pathnext.config.mjs
More file actions
91 lines (88 loc) · 2.42 KB
/
next.config.mjs
File metadata and controls
91 lines (88 loc) · 2.42 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
import { createMDX } from "fumadocs-mdx/next";
const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "avatars.githubusercontent.com",
},
{
protocol: "https",
hostname: "opencollective.com",
},
{
protocol: "https",
hostname: "ui-avatars.com",
},
{
protocol: "https",
hostname: "cdn.internal.hytalemodding.dev",
},
],
},
async redirects() {
return [
{
source: "/docs/:path*",
destination: "/en/docs/:path*",
permanent: false,
},
{
source:
"/:lang/docs/official-documentation/worldgen/worldgen-tutorial/world-generation-concepts-1",
destination:
"/:lang/docs/official-documentation/worldgen/worldgen-tutorial/materials-generation-concepts",
permanent: true,
},
{
source:
"/:lang/docs/official-documentation/worldgen/worldgen-tutorial/world-generation-concepts-2",
destination:
"/:lang/docs/official-documentation/worldgen/worldgen-tutorial/prop-generation-concepts",
permanent: true,
},
{
source:
"/:lang/docs/official-documentation/worldgen/worldgen-tutorial/world-generation-concepts",
destination:
"/:lang/docs/official-documentation/worldgen/worldgen-tutorial/density-generation-concepts",
permanent: true,
},
{
source: "/docs",
destination: "/en/docs",
permanent: false,
},
{
source: "/",
destination: "/en",
permanent: true,
},
{
source: "/drakon-guide/:path*",
destination:
"https://docs.google.com/document/d/10BTtTlM0KlK18l-hLkU6-eRiWUTFljcvnaqF593cX8E/edit?tab=t.0",
permanent: true,
},
{
source: "/drakon-doc/:path*",
destination:
"https://docs.google.com/document/d/10BTtTlM0KlK18l-hLkU6-eRiWUTFljcvnaqF593cX8E/edit?tab=t.0",
permanent: true,
},
{
source: "/en/docs/guides/ecs/hytale-ecs",
destination: "/en/docs/guides/ecs/hytale-ecs-theory",
permanent: true,
},
];
},
experimental: {
viewTransition: true,
},
cacheComponents: false, // TODO: Improve caching strategy
};
export default withMDX(config);