Skip to content

Commit f3774ed

Browse files
committed
fix types
1 parent d3368bd commit f3774ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plugin/onCreatePage.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const onCreatePage = async (
88
pluginOptions: PluginOptions
99
) => {
1010
//Exit if the page has already been processed.
11-
if (typeof page.context.i18n === 'object') {
11+
if (typeof page.context?.i18n === 'object') {
1212
return;
1313
}
1414

@@ -25,6 +25,7 @@ export const onCreatePage = async (
2525
path?: string;
2626
originalPath?: string;
2727
routed?: boolean;
28+
matchPath?: string;
2829
pageOptions?: PageOptions;
2930
};
3031
const generatePage = async ({
@@ -41,6 +42,7 @@ export const onCreatePage = async (
4142
path,
4243
context: {
4344
...page.context,
45+
path,
4446
language,
4547
i18n: {
4648
language,

0 commit comments

Comments
 (0)