From 43f47620c3d875f2ff29dee5d1d9fe697d4f2444 Mon Sep 17 00:00:00 2001 From: Sergey Shishkin Date: Tue, 27 Jun 2023 16:07:14 +0200 Subject: [PATCH] fix: remove use of path.join in component --- src/components/Search.astro | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Search.astro b/src/components/Search.astro index 38031d3..1de0675 100644 --- a/src/components/Search.astro +++ b/src/components/Search.astro @@ -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 } : {}),