Skip to content

Commit

Permalink
fix: serve static files from client output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
shishkin committed Jun 27, 2023
1 parent bda147c commit e402a16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pagefind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default function pagefind(): AstroIntegration {
name: "pagefind",
hooks: {
"astro:config:setup": ({ config }) => {
const c = config as unknown as { outDir: URL };
outDir = fileURLToPath(c.outDir);
const c = config as unknown as { build: { client: URL } };
outDir = fileURLToPath(c.build.client);
},
"astro:server:setup": ({ server }) => {
const serve = sirv(outDir, {
Expand Down

0 comments on commit e402a16

Please sign in to comment.