Skip to content

Commit 3980a8f

Browse files
committed
Use static page to redirect
1 parent 537e493 commit 3980a8f

2 files changed

Lines changed: 13 additions & 14 deletions

File tree

docusaurus.config.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,7 @@ const config = {
9393
// Optional
9494
contextualSearch: false,
9595
}
96-
}),
97-
plugins: [
98-
[
99-
'@docusaurus/plugin-client-redirects',
100-
{
101-
redirects: [
102-
{
103-
to: '/api',
104-
from: '/'
105-
}
106-
]
107-
},
108-
],
109-
]
96+
})
11097
};
11198

11299
module.exports = config;

static/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE HTML>
2+
<html lang="en-US">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="refresh" content="1;url=/api/">
6+
<title>Page Redirection</title>
7+
</head>
8+
<body>
9+
If you are not redirected automatically,
10+
follow the <a href="/api">link to the documentation</a>
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)