-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: support ssr for improve seo #1257
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@umijs/[email protected] |
const caseList = [ | ||
<Connect key="connect" />, | ||
<NFTCard key="nftcard" />, | ||
<PayPanel key="paypanel" />, | ||
<CryptoInput key="cryptoinput" />, | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const caseList = [ | |
<Connect key="connect" />, | |
<NFTCard key="nftcard" />, | |
<PayPanel key="paypanel" />, | |
<CryptoInput key="cryptoinput" />, | |
]; | |
const caseList = [ | |
<Connect key="Connect" />, | |
<NFTCard key="NFTCard" />, | |
<PayPanel key="PayPanel" />, | |
<CryptoInput key="CryptoInput" />, | |
]; |
@@ -52,6 +52,12 @@ export default defineConfig({ | |||
gtag('config', 'G-C31HWEY1D4'); | |||
`, | |||
], | |||
ssr: { | |||
// for improve seo | |||
// 需要使用 React 18.3.0-canary-c3048aab4-20240326 版本,因为 umi 是基于整个 HTML 做的水合,在 18.3.1 版本有 bug,会导致浏览器插件的内容影响水合 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可是antd侧的react版本也是18.3.1,是 web3 相关的插件有啥影响吗
添加 dumi ssr 配置,提升首页渲染速度和 SEO close #1212