From 09ee595618ad8c2fc6816e4c2ca21991a5ddeae3 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 13 Feb 2024 01:46:59 -0500 Subject: use MINIFLUX_URL if present --- src/components/Nav.astro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/components') diff --git a/src/components/Nav.astro b/src/components/Nav.astro index 378c804..f427548 100644 --- a/src/components/Nav.astro +++ b/src/components/Nav.astro @@ -6,11 +6,13 @@ interface NavLink { url: string; } +const minifluxUrl = process.env.MINIFLUX_URL || `https://miniflux.${Astro.url.hostname || config.site}`; + const links: NavLink[] = [ { name: "home", url: "/" }, { name: "miniflux", - url: `https://miniflux.${Astro.url.hostname || config.site}`, + url: minifluxUrl, }, { name: "github", -- cgit v1.2.3