chore: add configuration for localhost
All checks were successful
/ Build (push) Successful in 2m53s

This commit is contained in:
log101 2024-05-30 13:54:06 +03:00
parent 3281bb2257
commit 2858629b97

View File

@ -8,7 +8,9 @@ import Post from "@/components/Post.astro";
const { entry } = Astro.props; const { entry } = Astro.props;
const host = import.meta.env.PROD ? import.meta.env.SITE : "http://localhost"; const host = import.meta.env.PROD
? import.meta.env.SITE
: "http://localhost:8000";
export async function getStaticPaths() { export async function getStaticPaths() {
const blogEntries = await getCollection("blog"); const blogEntries = await getCollection("blog");