Skip to content

Commit

Permalink
docs: fix homepage flashing (#12029)
Browse files Browse the repository at this point in the history
* docs: fix homepage flashing

* chore: update

* chore: update
  • Loading branch information
sorrycc authored Jan 5, 2024
1 parent 6eb927a commit 7076342
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/.dumi/components/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ const HeroWrapper = styled.div`
export const Hero = () => {
// TODO: github stars 存 localStorage
// 采用 stale-while-revalidate 的策略
localStorage.length;
return (
<HeroWrapper>
<div className="bg"></div>
Expand Down
3 changes: 3 additions & 0 deletions docs/.dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ export default defineConfig({
define: {
'process.env.UMI_VERSION': version,
},
exportStatic: {
ignorePreRenderError: true,
},
themeConfig: {
name: 'UmiJS',
socialLinks: {
Expand Down

1 comment on commit 7076342

@vercel
Copy link

@vercel vercel bot commented on 7076342 Jan 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.