From d78cebf3f4f44eff582cb4e23741c450d8e9457e Mon Sep 17 00:00:00 2001 From: aefly <127992938+aefly@users.noreply.github.com> Date: Sun, 26 Jan 2025 23:06:14 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fix=20pages=20not=20index?= =?UTF-8?q?ing=20when=20using=20`@astrojs/vercel`=208.0.3=20and=20higher?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/astro-pagefind/src/pagefind.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/astro-pagefind/src/pagefind.ts b/packages/astro-pagefind/src/pagefind.ts index 16768b9..71b9e61 100644 --- a/packages/astro-pagefind/src/pagefind.ts +++ b/packages/astro-pagefind/src/pagefind.ts @@ -27,9 +27,7 @@ export default function pagefind({ indexConfig }: PagefindOptions = {}): AstroIn return; } - if (config.adapter?.name.startsWith("@astrojs/vercel")) { - outDir = fileURLToPath(new URL(".vercel/output/static/", config.root)); - } else if (config.adapter?.name === "@astrojs/cloudflare") { + if (config.adapter?.name === "@astrojs/cloudflare") { outDir = fileURLToPath(new URL(config.base?.replace(/^\//, ""), config.outDir)); } else if (config.adapter?.name === "@astrojs/node") { outDir = fileURLToPath(config.build.client);