From 17c86c0926fc275a4c7b9ec5054e4c08585ed234 Mon Sep 17 00:00:00 2001 From: log101 Date: Thu, 30 May 2024 13:16:29 +0300 Subject: [PATCH] feat: update hx-get directive target --- src/pages/category/[category]/[slug]/index.astro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/category/[category]/[slug]/index.astro b/src/pages/category/[category]/[slug]/index.astro index f494543..1f69a11 100644 --- a/src/pages/category/[category]/[slug]/index.astro +++ b/src/pages/category/[category]/[slug]/index.astro @@ -8,6 +8,8 @@ import Post from "@/components/Post.astro"; const { entry } = Astro.props; +const host = import.meta.env.PROD ? import.meta.env.SITE : "http://localhost"; + export async function getStaticPaths() { const blogEntries = await getCollection("blog"); return blogEntries.map((entry) => ({ @@ -33,7 +35,7 @@ export async function getStaticPaths() {