Skip to content

Commit 1ff11c8

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

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
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

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

66

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

0 commit comments

Comments
 (0)