Skip to content

Commit c345963

Browse files
committed
fixing preview root url
1 parent c66ffd1 commit c345963

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docusaurus.config.en.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,16 @@ const config = {
160160
beforeDefaultRemarkPlugins: [fixLinks],
161161
rehypePlugins: [katex],
162162
},
163+
async redirects() {
164+
const redirects = [];
165+
if (process.env.VERCEL_ENV === 'preview') {
166+
redirects.push({
167+
from: '/',
168+
to: '/docs',
169+
});
170+
}
171+
return redirects;
172+
},
163173
blog: {
164174
path: "knowledgebase",
165175
blogTitle: "ClickHouse Knowledge Base",

0 commit comments

Comments
 (0)