Skip to content

Commit

Permalink
fix: remove use of path.join in component
Browse files Browse the repository at this point in the history
  • Loading branch information
shishkin committed Jun 27, 2023
1 parent e402a16 commit 43f4762
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Search.astro
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
import "@pagefind/default-ui/css/ui.css";
import { join } from "node:path";
import type { Props } from "./Search.js";
const { id, className, query } = Astro.props as Props;
const bundlePath = join(import.meta.env.BASE_URL, "_pagefind/");
const bundlePath = `${import.meta.env.BASE_URL}_pagefind/`;
const divProps = {
...(id ? { id } : {}),
...(className ? { class: className } : {}),
Expand Down

0 comments on commit 43f4762

Please sign in to comment.