Skip to content

Commit

Permalink
feat: update to astro 5
Browse files Browse the repository at this point in the history
  • Loading branch information
shishkin committed Dec 7, 2024
1 parent 0fa0d1b commit bc66993
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/astro-pagefind/src/pagefind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export default function pagefind(): AstroIntegration {
outDir = fileURLToPath(new URL(".vercel/output/static/", config.root));
} else if (config.adapter?.name === "@astrojs/cloudflare") {
outDir = fileURLToPath(new URL(config.base?.replace(/^\//, ""), config.outDir));
} else if (config.adapter?.name === "@astrojs/node" && config.output === "hybrid") {
outDir = fileURLToPath(config.build.client!);
} else if (config.adapter?.name === "@astrojs/node") {
outDir = fileURLToPath(config.build.client);
} else {
outDir = fileURLToPath(config.outDir);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/example/src/layouts/Transitions.astro
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
import { ViewTransitions } from "astro:transitions";
import { ClientRouter } from "astro:transitions";
---

<html lang="en">
<head>
<meta charset="utf-8" />
<title>Astro</title>
<ViewTransitions />
<ClientRouter />
</head>
<body>
<slot />
Expand Down

0 comments on commit bc66993

Please sign in to comment.