Skip to content

Commit 050fa50

Browse files
committed
chore: enhance future configuration options
1 parent 5cff3ed commit 050fa50

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docusaurus.config.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ const config: Config = {
118118
],
119119
copyright: `
120120
<p style="margin-bottom: 0;"><a href="http://beian.miit.gov.cn/">${beian}</a></p>
121-
<p style="display: inline-flex; align-items: center;"><img style="height:20px;margin-right: 0.5rem;" src="/img/police.png" alt="police" height="20"/><a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=${
122-
beian1.match(/\d+/)?.[0]
121+
<p style="display: inline-flex; align-items: center;"><img style="height:20px;margin-right: 0.5rem;" src="/img/police.png" alt="police" height="20"/><a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=${beian1.match(/\d+/)?.[0]
123122
}" >${beian1}</a></p>
124123
<p>Copyright © 2020 - ${new Date().getFullYear()} kuizuo. | Built with Docusaurus.</p>
125124
`,
@@ -300,8 +299,15 @@ Love what you do and do what you love.
300299
},
301300
onBrokenLinks: 'warn',
302301
future: {
303-
v4: true,
304-
experimental_faster: true,
302+
v4: {
303+
removeLegacyPostBuildHeadAttribute: true,
304+
useCssCascadeLayers: false,
305+
},
306+
experimental_faster: {
307+
ssgWorkerThreads: true,
308+
rspackBundler: true,
309+
rspackPersistentCache: true,
310+
},
305311
},
306312
}
307313

0 commit comments

Comments
 (0)