Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/lobehub/lobe-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 8, 2025
2 parents fffadd1 + 4fd0637 commit 4b42776
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ const themeConfig: SiteThemeConfig = {
type: 'primary',
},
],
analytics: {
plausible: {
domain: 'ui.lobehub.com',
scriptBaseUrl: 'https://plausible.lobehub-inc.cn',
},
},
apiHeader: {
docUrl: `{github}/tree/master/src/{atomId}/index.md`,
match: ['/components'],
Expand All @@ -48,6 +54,7 @@ const themeConfig: SiteThemeConfig = {
repo: 'lobehub/lobe-ui',
repoId: 'R_kgDOJloKoA',
},
lastUpdated: true,
metadata: {
openGraph: {
image:
Expand All @@ -58,7 +65,7 @@ const themeConfig: SiteThemeConfig = {
nav,
prefersColor: {
default: 'dark',
switch: true,
switch: false,
},
socialLinks: {
discord: 'https://discord.gg/AYFPHvv2jT',
Expand All @@ -82,8 +89,10 @@ export default defineConfig({
define: {
'process.env': process.env,
},
exportStatic: {},
extraBabelPlugins: ['babel-plugin-antd-style'],
favicons: ['https://lobehub.com/favicon.ico'],
jsMinifier: 'swc',
locales: [{ id: 'en-US', name: 'English' }],
mfsu: isWin ? undefined : {},
npmClient: 'pnpm',
Expand All @@ -101,15 +110,10 @@ export default defineConfig({
],
entryFile: isProduction ? './src/index.ts' : undefined,
},
scripts: [
{
'data-domain': 'ui.lobehub.com',
'src': 'https://plausible.lobehub-inc.cn/js/script.js',
},
],
sitemap: {
hostname: 'https://ui.lobehub.com',
},
ssr: isProduction ? {} : false,
styles: [
`html, body { background: transparent; }
Expand Down

0 comments on commit 4b42776

Please sign in to comment.