Skip to content

Commit

Permalink
🔧 chore: Enable ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Nov 24, 2024
1 parent c0ddc9c commit 67bc4a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export default defineConfig({
define: {
'process.env': process.env,
},
exportStatic: {},
extraBabelPlugins: ['antd-style'],
favicons: ['https://lobehub.com/favicon.ico'],
locales: [{ id: 'en-US', name: 'English' }],
mfsu: isWin ? undefined : {},
Expand All @@ -78,6 +80,7 @@ export default defineConfig({
sitemap: {
hostname: 'https://tts.lobehub.com',
},
ssr: isProduction ? {} : false,
styles: [
`html, body { background: transparent; }
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"commitlint": "^19.6.0",
"concurrently": "^9.1.0",
"dumi": "^2.4.14",
"dumi-theme-lobehub": "^1.9.2",
"dumi-theme-lobehub": "^1.10.4",
"eslint": "^8.57.1",
"father": "^4.5.1",
"husky": "^9.1.7",
Expand Down
5 changes: 5 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
User-Agent: *
Allow: /

Host: https://tts.lobehub.com
Sitemap: https://tts.lobehub.com/sitemap.xml

0 comments on commit 67bc4a9

Please sign in to comment.