Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d533d2e

Browse files
committedAug 1, 2024
write: provide wikiData to pathsForTarget
1 parent 4c3caa2 commit d533d2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/write/build-modes/live-dev-server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export async function go({
146146
const result = pageSpec.pathsTargetless({wikiData});
147147
return Array.isArray(result) ? result : [result];
148148
} else {
149-
return pageSpec.pathsForTarget(target);
149+
return pageSpec.pathsForTarget(target, {wikiData});
150150
}
151151
})).flat();
152152

‎src/write/build-modes/static-build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export async function go({
223223
return null;
224224
}
225225

226-
paths.push(...targets.flatMap(target => pageSpec.pathsForTarget(target)));
226+
paths.push(...targets.flatMap(target => pageSpec.pathsForTarget(target, {wikiData})));
227227
// TODO: Validate each pathsForTargets entry
228228
}
229229

0 commit comments

Comments
 (0)
Please sign in to comment.