Skip to content

Commit

Permalink
Fixed hardcoded buildir
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugos68 committed Jan 27, 2024
1 parent 0cc5ec0 commit d911925
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/short-balloons-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vite-plugin-pagefind": patch
---

Fixed hardcoded buildDir
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function ({
cwd = process.cwd()
}: PagefindConfig) {
pagefindDir = join(cwd, pagefindDir);
buildDir = join(cwd, 'build');
buildDir = join(cwd, buildDir);

function configureServer() {
if (!existsSync(pagefindDir)) {
Expand Down

0 comments on commit d911925

Please sign in to comment.