From a2d3a00e7502f2c66e85f61d1ecab9a569bce6ea Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Mon, 18 Apr 2022 11:24:52 +0200 Subject: [PATCH 1/3] disable indexation --- docs/pages/_document.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/pages/_document.js b/docs/pages/_document.js index 5957241cd2b34a..0a7d4488ea4256 100644 --- a/docs/pages/_document.js +++ b/docs/pages/_document.js @@ -64,10 +64,7 @@ export default class MyDocument extends Document { rel="canonical" href={`https://mui.com${userLanguage === 'en' ? '' : `/${userLanguage}`}${canonicalAs}`} /> - {/* TODO remove post migration */} - {!FEATURE_TOGGLE.enable_redirects && canonicalAs.startsWith('/material-ui/') ? ( - - ) : null} + {/* Preconnect allows the browser to setup early connections before an HTTP request From fbc0d828994a5486e503d0d18501f7063674661b Mon Sep 17 00:00:00 2001 From: Matheus Wichman Date: Wed, 5 Oct 2022 19:31:45 -0300 Subject: [PATCH 2/3] [docs] Add redirects for MUI X v6 (#34296) Signed-off-by: Matheus Wichman Signed-off-by: Olivier Tassinari Co-authored-by: Olivier Tassinari --- docs/public/_redirects | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/public/_redirects b/docs/public/_redirects index f6194a2a145c04..9e302b39cebad3 100644 --- a/docs/public/_redirects +++ b/docs/public/_redirects @@ -402,14 +402,16 @@ https://v4.material-ui.com/* https://v4.mui.com/:splat 301! ## MUI X ## Unlike the store that expect to be hosted under a subfolder, ## MUI X is configured to be hosted at the root. -/static/x/* https://material-ui-x.netlify.app/static/x/:splat 200 -/x/_next/* https://material-ui-x.netlify.app/_next/:splat 200 -/x/* https://material-ui-x.netlify.app/x/:splat 200 -/r/x-* https://material-ui-x.netlify.app/r/x-:splat 200 -/:lang/x/* https://material-ui-x.netlify.app/:lang/x/:splat 200 +/static/x/* https://docs-next--material-ui-x.netlify.app/static/x/:splat 200 +/x/_next/* https://docs-next--material-ui-x.netlify.app/_next/:splat 200 +/x/* https://docs-next--material-ui-x.netlify.app/x/:splat 200 +/r/x-* https://docs-next--material-ui-x.netlify.app/r/x-:splat 200 +/:lang/x/* https://docs-next--material-ui-x.netlify.app/:lang/x/:splat 200 ## MUI Toolpad /static/toolpad/* https://mui-toolpad-docs.netlify.app/static/toolpad/:splat 200 /toolpad/_next/* https://mui-toolpad-docs.netlify.app/_next/:splat 200 /toolpad/* https://mui-toolpad-docs.netlify.app/toolpad/:splat 200 /r/toolpad-* https://mui-toolpad-docs.netlify.app/r/toolpad-:splat 200 + +/* https://mui.com/:splat 301! From 39195181d30bb8df89e8ddeda02449c3eaaf383f Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Thu, 6 Oct 2022 01:39:31 +0200 Subject: [PATCH 3/3] [docs] Handle static files --- docs/public/_redirects | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/public/_redirects b/docs/public/_redirects index 9e302b39cebad3..b3ffb080ec8461 100644 --- a/docs/public/_redirects +++ b/docs/public/_redirects @@ -403,6 +403,7 @@ https://v4.material-ui.com/* https://v4.mui.com/:splat 301! ## Unlike the store that expect to be hosted under a subfolder, ## MUI X is configured to be hosted at the root. /static/x/* https://docs-next--material-ui-x.netlify.app/static/x/:splat 200 +/static/* https://mui.com/static/:splat 200 /x/_next/* https://docs-next--material-ui-x.netlify.app/_next/:splat 200 /x/* https://docs-next--material-ui-x.netlify.app/x/:splat 200 /r/x-* https://docs-next--material-ui-x.netlify.app/r/x-:splat 200