We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3368bd commit f3774edCopy full SHA for f3774ed
src/plugin/onCreatePage.ts
@@ -8,7 +8,7 @@ export const onCreatePage = async (
8
pluginOptions: PluginOptions
9
) => {
10
//Exit if the page has already been processed.
11
- if (typeof page.context.i18n === 'object') {
+ if (typeof page.context?.i18n === 'object') {
12
return;
13
}
14
@@ -25,6 +25,7 @@ export const onCreatePage = async (
25
path?: string;
26
originalPath?: string;
27
routed?: boolean;
28
+ matchPath?: string;
29
pageOptions?: PageOptions;
30
};
31
const generatePage = async ({
@@ -41,6 +42,7 @@ export const onCreatePage = async (
41
42
path,
43
context: {
44
...page.context,
45
+ path,
46
language,
47
i18n: {
48
0 commit comments