Skip to content

Commit

Permalink
Merge pull request #109 from aefly/vercel-adapter-fix
Browse files Browse the repository at this point in the history
fix: 🐛 Pages not being indexed when using `@astrojs/vercel` 8.0.3 and higher
  • Loading branch information
shishkin authored Jan 27, 2025
2 parents 0b479a8 + d78cebf commit 94d32cd
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 94d32cd

Please sign in to comment.