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 3ed1fe0 commit 2fa906dCopy full SHA for 2fa906d
plugins/lume_cms.ts
@@ -53,16 +53,16 @@ export function lumeCMS(userOptions: Options) {
53
data.site = site;
54
cms.options.data = data;
55
56
- // Set the preview URL function
57
- cms.options.previewURL ??= function previewURL(
+ // Set the function to return the preview URL
+ cms.options.previewUrl ??= function previewUrl(
58
path: string,
59
data: unknown,
60
hasChanged?: boolean,
61
): undefined | string | Promise<string | undefined> {
62
if (hasChanged) {
63
return new Promise((resolve) => {
64
site.addEventListener("idle", () => {
65
- resolve(previewURL(path, data));
+ resolve(previewUrl(path, data));
66
}, { once: true });
67
});
68
}
0 commit comments