[website] Link MUI Toolpad in mui.com#33287
Conversation
| /:lang/x/* https://material-ui-x.netlify.app/:lang/x/:splat 200 | ||
|
|
||
| ## MUI Toolpad | ||
| /_next/* https://mui-toolpad-docs.netlify.app/_next/:splat 200 |
There was a problem hiding this comment.
Out of curiosity, did we try Next.js basePath before?
There was a problem hiding this comment.
We have tried this pattern to do the integration with MUI Store and Gatsby: https://github.com/mui/mui-store/blob/67f30e5ec9a48aa229b605040c566c58a1d75a0c/web/gatsby-config.js#L17: https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/. The store used to be hosted as https://themes.material-ui.com/. pathPrefix was the fastest way to get the work done when we decided to move it to http://mui.com/store/ to improve SEO.
It simplifies the configuration on this file, however, we have to always do the mental conversion in our head between the localhost & live preview URLs on what will be the final URLs. I wouldn't say it has been a great DX so far on the store.
| /_next/* https://material-ui-x.netlify.app/_next/:splat 200 | ||
| /static/x/* https://material-ui-x.netlify.app/static/x/: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 |
There was a problem hiding this comment.
I'm using the production deployment. It seems to make more sense.
Related to mui/toolpad#542, the goal is to get us one step closer to displaying https://deploy-preview-542--mui-toolpad-docs.netlify.app/toolpad/getting-started/ in https://mui.com/toolpad/getting-started/.
Preview: https://deploy-preview-33287--material-ui.netlify.app/toolpad/