-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.ts
83 lines (81 loc) · 2.02 KB
/
next.config.ts
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
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
logging: false,
compiler: {
removeConsole: process.env.NODE_ENV === "production",
},
experimental: {
ppr: true,
inlineCss: true,
},
devIndicators: {
buildActivityPosition: "bottom-right",
appIsrStatus: false,
buildActivity: false,
},
async redirects() {
return [
{
source: "/start",
destination: "https://eliza.gg/eliza/",
permanent: false,
},
{
source: "/school",
destination:
"https://www.youtube.com/playlist?list=PL0D_B_lUFHBKZSKgLlt24RvjJ8pavZNVh",
permanent: false,
},
{
source: "/discord",
destination: "https://discord.gg/2bkryvK9Yu",
permanent: false,
},
{
source: "/profiles",
destination: "https://elizaos.github.io/profiles",
permanent: false,
},
{
source: "/bounties",
destination: "https://elizaos.github.io/website/",
permanent: false,
},
];
},
async rewrites() {
return [
{
source: "/ingest/static/:path(.*)",
destination: "https://us-assets.i.posthog.com/static/:path",
},
{
source: "/ingest/:path(.*)",
destination: "https://us.i.posthog.com/:path",
},
{
source: "/profiles/:path(.*)",
destination: "https://elizaos.github.io/profiles/:path",
},
{
source: "/bounties/:path(.*)",
destination: "https://elizaos.github.io/website/:path",
},
{
source: "/eliza/:path(.*)",
destination: "https://elizaos.github.io/eliza/:path",
},
{
source: "/docs",
destination: "https://cogend.mintlify.dev/docs",
},
{
source: "/docs/:match*",
destination: "https://cogend.mintlify.dev/docs/:match*",
},
];
},
// This is required to support PostHog trailing slash API requests
skipTrailingSlashRedirect: true,
};
export default nextConfig;