Skip to content

Commit bd81f2b

Browse files
committed
Try upgrade rspress to fix strict ssg issue
1 parent 5f702ff commit bd81f2b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"eslint": "^9.19.0",
2323
"globals": "^15.14.0",
2424
"prettier": "^3.4.2",
25-
"rspress": "^1.42.1",
25+
"rspress": "^v2.0.0-alpha.0",
2626
"typescript-eslint": "^8.22.0"
2727
},
2828
"description": "## Setup",

theme/index.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import Theme from 'rspress/theme';
1+
import { Layout as BasicLayout } from 'rspress/theme';
22
import { Content } from 'rspress/runtime';
33
import { HomeLayout } from './pages/index';
4-
const Layout = () => <Theme.Layout ><Content /></Theme.Layout>;
4+
const Layout = () => <BasicLayout><Content /></BasicLayout>;
55

66

77
export default {
8-
...Theme,
98
Layout,
109
HomeLayout,
1110
};

0 commit comments

Comments
 (0)