From 0c6c21c9d833ec2afc731b1d4fe11c0ee49f2ce0 Mon Sep 17 00:00:00 2001 From: hankertrix <91734413+hankertrix@users.noreply.github.com> Date: Thu, 21 Nov 2024 05:23:26 +0800 Subject: [PATCH] Fixed the errors in the build ci --- src/plugins/pagefind-build.js | 2 +- src/plugins/pagefind-dev.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/pagefind-build.js b/src/plugins/pagefind-build.js index 3f0c0ee..a21d7e0 100644 --- a/src/plugins/pagefind-build.js +++ b/src/plugins/pagefind-build.js @@ -12,7 +12,7 @@ export default function build() { async config() { const cwd = process.cwd(); const pagefind_config = await get_pagefind_config(cwd); - const pagefind_url = pagefind_config.pagefind_url; + const pagefind_url = pagefind_config.vite_plugin_pagefind.pagefind_url; return { build: { rollupOptions: { diff --git a/src/plugins/pagefind-dev.js b/src/plugins/pagefind-dev.js index dda983f..398f88b 100644 --- a/src/plugins/pagefind-dev.js +++ b/src/plugins/pagefind-dev.js @@ -20,7 +20,7 @@ export default function dev() { async config() { const cwd = process.cwd(); const pagefind_config = await get_pagefind_config(cwd); - const pagefind_url = pagefind_config.pagefind_url; + const pagefind_url = pagefind_config.vite_plugin_pagefind.pagefind_url; return { assetsInclude: ["**/pagefind.js", "**/pagefind-highlight.js"], build: {