This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
64 lines (62 loc) · 2.42 KB
/
next.config.js
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
const withMarkdoc = require("@markdoc/next.js");
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
pageExtensions: ["js", "jsx", "md"],
swcMinify: true,
experimental: {
newNextLinkBehavior: true,
scrollRestoration: true,
},
redirects: () =>
[
["/bridges", "/mirror"],
["/bridges/elasticsearch", "/mirror/elasticsearch"],
["/bridges/goldsky-graphql", "/mirror/goldsky-graphql"],
["/bridges/timescale", "/mirror/timescale"],
["/bridges/webhooks", "/subgraphs/webhooks"],
["/docs/:path*", "/:path*"],
["/indexing/direct-data-indexing", "/mirror"],
["/mirror", "/mirror/what-are-mirror-pipelines"],
["/mirror/choose-the-right-sink", "/mirror/choosing-the-right-sink"],
["/mirror/create-a-pipeline", "/mirror/creating-a-pipeline"],
["/mirror/elasticsearch", "/mirror/sinks/elasticsearch"],
["/mirror/goldsky-graphql", "/mirror/sinks/graphql"],
["/mirror/pipeline-cli", "/mirror/references/cli-commands"],
[
"/mirror/pipeline-definitions",
"/mirror/references/pipeline-configuration",
],
["/mirror/rockset", "/mirror/sinks/rockset"],
["/mirror/timescale", "/mirror/sinks/timescale"],
["/mirror/webhooks", "/subgraphs/webhooks"],
["/mirror/sinks/webhooks", "/subgraphs/webhooks"],
[
"/references/instant-subgraphs-config",
"/references/instant-subgraphs-configuration",
],
["/streams", "/fusion"],
["/streams/cross-chain-subgraphs", "/fusion/cross-chain-subgraphs"],
["/streams/transforms", "/fusion/transforms"],
["/indexing", "/subgraphs"],
[
"/indexing/dedicated-subgraph-indexing",
"/subgraphs/dedicated-subgraphs",
],
[
"/indexing/deploying-subgraphs-base",
"/subgraphs/deploying-subgraphs-base",
],
["/indexing/deploying-subgraphs", "/subgraphs/deploying-subgraphs"],
["/indexing/instant-subgraphs", "/subgraphs/instant-subgraphs"],
["/indexing/shared-subgraph-indexing", "/subgraphs/shared-subgraphs"],
["/indexing/webhooks", "/subgraphs/webhooks"],
["/subgraphs/shared-subgraphs", "/subgraphs/serverless-vs-dedicated"],
["/subgraphs/dedicated-subgraphs", "/subgraphs/serverless-vs-dedicated"],
].map(([source, destination]) => ({
source,
destination,
permanent: true,
})),
};
module.exports = withMarkdoc()(nextConfig);