forked from open-metadata/docs-v1-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
72 lines (71 loc) · 2.21 KB
/
Copy pathnext.config.js
File metadata and controls
72 lines (71 loc) · 2.21 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
const withMarkdoc = require("@markdoc/next.js");
const fs = require("fs");
module.exports =
withMarkdoc(/* config: https://markdoc.io/docs/nextjs#options */)({
images: {
remotePatterns: [
{
protocol: "https",
hostname: "cdn.hashnode.com",
port: "",
},
],
},
webpack: (configuration) => {
configuration.module.rules.push(
{
test: /\.svg$/,
use: ["@svgr/webpack", "file-loader"],
},
{
test: /\.md$/,
use: "frontmatter-markdown-loader",
},
{
test: /\.ya?ml$/,
// use: 'js-yaml-loader',
use: "raw-loader", // Use raw-loader to load YAML as a string to preserve comments
}
);
return configuration;
},
async exportPathMap(defaultPathMap) {
return {
...defaultPathMap,
};
},
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdoc"],
i18n: {
locales: ["en"],
defaultLocale: "en",
},
async redirects() {
return [
{
source: '/:prefix*/how-to-guides/data-governance/classification/auto',
destination: '/how-to-guides/data-governance/classification/auto-classification',
permanent: true,
},
{
source: '/:prefix*/how-to-guides/data-governance/classification/auto/workflow',
destination: '/how-to-guides/data-governance/classification/auto-classification/workflow',
permanent: true,
},
{
source: '/:prefix*/how-to-guides/data-governance/classification/auto/external-workflow',
destination: '/how-to-guides/data-governance/classification/auto-classification/external-workflow',
permanent: true,
},
{
source: '/:prefix*/how-to-guides/data-governance/classification/auto/auto-pii-tagging',
destination: '/how-to-guides/data-governance/classification/auto-classification/auto-pii-tagging',
permanent: true,
},
{
source: '/:prefix*/connectors/search/airflow/troubleshooting',
destination: '/connectors/pipeline/airflow/troubleshooting',
permanent: true,
},
]
},
});