Skip to content

Commit a50cba6

Browse files
committed
Redirect for old status page location
1 parent d8dae63 commit a50cba6

File tree

1 file changed

+36
-26
lines changed

1 file changed

+36
-26
lines changed

next.config.mjs

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ const nextConfig = {
44
async redirects() {
55
return [
66
{
7-
source: '/advanced/',
8-
destination: '/',
7+
source: "/advanced/",
8+
destination: "/",
99
permanent: false,
1010
},
1111
{
12-
source: '/advanced/index.html',
13-
destination: '/',
12+
source: "/advanced/index.html",
13+
destination: "/",
14+
permanent: false,
15+
},
16+
{
17+
source: "/advanced/status.html",
18+
destination: "/status.html",
1419
permanent: false,
1520
},
1621
/*
@@ -26,61 +31,66 @@ const nextConfig = {
2631
},
2732
*/
2833
{
29-
source: '/simple/previous.html',
30-
destination: '/advanced/java/index.html',
34+
source: "/simple/previous.html",
35+
destination: "/advanced/java/index.html",
3136
permanent: false,
3237
},
3338
{
34-
source: '/support/',
35-
destination: '/support/index.html',
39+
source: "/support/",
40+
destination: "/support/index.html",
3641
permanent: false,
3742
},
3843
{
39-
source: '/support/api.html',
40-
destination: 'https://github.com/regexplanet/regexplanet-next/blob/main/CONTRIBUTING.md#backend-api',
44+
source: "/support/api.html",
45+
destination:
46+
"https://github.com/regexplanet/regexplanet-next/blob/main/CONTRIBUTING.md#backend-api",
4147
permanent: false,
4248
},
4349
{
44-
source: '/support/credits.html',
45-
destination: 'https://github.com/regexplanet/regexplanet-next/tree/main?tab=readme-ov-file#credits',
50+
source: "/support/credits.html",
51+
destination:
52+
"https://github.com/regexplanet/regexplanet-next/tree/main?tab=readme-ov-file#credits",
4653
permanent: false,
4754
},
4855
{
49-
source: '/support/engines.html',
50-
destination: '/status.html',
56+
source: "/support/engines.html",
57+
destination: "/status.html",
5158
permanent: false,
5259
},
5360
{
54-
source: '/support/history.html',
55-
destination: 'https://github.com/regexplanet/regexplanet-next/blob/main/CHANGELOG.md',
61+
source: "/support/history.html",
62+
destination:
63+
"https://github.com/regexplanet/regexplanet-next/blob/main/CHANGELOG.md",
5664
permanent: false,
5765
},
5866
{
59-
source: '/support/license.html',
60-
destination: 'https://github.com/regexplanet/regexplanet-next/blob/main/LICENSE.txt',
67+
source: "/support/license.html",
68+
destination:
69+
"https://github.com/regexplanet/regexplanet-next/blob/main/LICENSE.txt",
6170
permanent: false,
6271
},
6372
{
64-
source: '/support/privacy.html',
65-
destination: '/legal/privacy.html',
73+
source: "/support/privacy.html",
74+
destination: "/legal/privacy.html",
6675
permanent: false,
6776
},
6877
{
69-
source: '/support/terms.html',
70-
destination: '/legal/terms.html',
78+
source: "/support/terms.html",
79+
destination: "/legal/terms.html",
7180
permanent: false,
7281
},
7382
{
74-
source: '/support/todo.html',
75-
destination: 'https://github.com/regexplanet/regexplanet-next/blob/main/TODO.md',
83+
source: "/support/todo.html",
84+
destination:
85+
"https://github.com/regexplanet/regexplanet-next/blob/main/TODO.md",
7686
permanent: false,
77-
}
87+
},
7888
/* did not work: {
7989
source: '/advanced/:slug/',
8090
destination: '/advanced/:slug/index.html',
8191
permanent: false,
8292
}, */
83-
]
93+
];
8494
},};
8595

8696
export default nextConfig;

0 commit comments

Comments
 (0)