From 5da44976cd2b329bb10a1613eab523dfa69adbd8 Mon Sep 17 00:00:00 2001 From: log101 Date: Mon, 13 May 2024 10:28:52 +0300 Subject: [PATCH] feat: add base path --- astro.config.mjs | 2 ++ src/components/Header.astro | 14 ++++++-------- src/components/Post.astro | 6 ++++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index bf710b1..98eb148 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -2,5 +2,7 @@ import { defineConfig } from "astro/config"; // https://astro.build/config export default defineConfig({ + site: "https://log101.dev", + base: "/blog", integrations: [], }); diff --git a/src/components/Header.astro b/src/components/Header.astro index 2547bde..b464773 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,7 +1,5 @@ --- -console.log(import.meta.env.DEV); - -const host = import.meta.env.HOST_NAME; +const base = import.meta.env.BASE_URL; ---