Skip to content

Commit

Permalink
fix: 🐛 Fix pages not indexing when using @astrojs/vercel 8.0.3 and …
Browse files Browse the repository at this point in the history
…higher
  • Loading branch information
aefly committed Jan 26, 2025
1 parent 0b479a8 commit d78cebf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/astro-pagefind/src/pagefind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d78cebf

Please sign in to comment.