Skip to content

Commit be74610

Browse files
committed
chore(self-hosting): don't break old links
1 parent e7fedac commit be74610

File tree

3 files changed

+45
-34
lines changed

3 files changed

+45
-34
lines changed

content/self-hosting/configuring-nocodb.mdx renamed to content/self-hosting/environment-variables.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'Configuring NocoDB'
2+
title: 'Environment Variables'
33
icon: 'cog'
44
tags: [ 'Open Source' ]
55
keywords: [ 'NocoDB Environment Variables', 'NocoDB env variables', 'NocoDB envs', 'NocoDB .env' ]

content/self-hosting/meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"pages": [
33
"index",
4-
"configuring-nocodb",
4+
"environment-variables",
55

66
"upstall",
77
"docker",

next.config.mjs

Lines changed: 43 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,49 @@ const withMDX = createMDX();
55
/** @type {import('next').NextConfig} */
66
const config = {
77
reactStrictMode: true,
8-
images: {
9-
remotePatterns: [
10-
{
11-
protocol: 'https',
12-
hostname: 'user-images.githubusercontent.com',
13-
port: '',
14-
pathname: '**',
15-
},
16-
{
17-
protocol: 'https',
18-
hostname: 'elest.io',
19-
port: '',
20-
pathname: '**',
21-
},
22-
{
23-
protocol: 'https',
24-
hostname: 'd16t0pc4846x52.cloudfront.net',
25-
port: '',
26-
pathname: '**',
27-
},{
28-
protocol: 'https',
29-
hostname: 'media.tenor.com',
30-
port: '',
31-
pathname: '**',
32-
},{
33-
protocol: 'https',
34-
hostname: 'github.com',
35-
port: '',
36-
pathname: '**',
37-
}
38-
],
39-
},
8+
9+
redirects: async () => {
10+
return [
11+
{
12+
source: '/docs/self-hosting/installation/:path*',
13+
destination: '/docs/self-hosting/:path*',
14+
permanent: true,
15+
},
16+
];
17+
},
18+
19+
images: {
20+
remotePatterns: [
21+
{
22+
protocol: 'https',
23+
hostname: 'user-images.githubusercontent.com',
24+
port: '',
25+
pathname: '**',
26+
},
27+
{
28+
protocol: 'https',
29+
hostname: 'elest.io',
30+
port: '',
31+
pathname: '**',
32+
},
33+
{
34+
protocol: 'https',
35+
hostname: 'd16t0pc4846x52.cloudfront.net',
36+
port: '',
37+
pathname: '**',
38+
}, {
39+
protocol: 'https',
40+
hostname: 'media.tenor.com',
41+
port: '',
42+
pathname: '**',
43+
}, {
44+
protocol: 'https',
45+
hostname: 'github.com',
46+
port: '',
47+
pathname: '**',
48+
}
49+
],
50+
},
4051
};
4152

4253
export default withMDX(config);

0 commit comments

Comments
 (0)