From 0c6d1ebd06f1a23fccb28d2e05ed09cc683d28e1 Mon Sep 17 00:00:00 2001 From: Korbs Date: Thu, 6 Jun 2024 17:51:07 -0400 Subject: [PATCH] Import ENVs --- astro.config.mjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index 8f42430..c13406e 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,5 +1,10 @@ import { defineConfig } from 'astro/config'; +const SITE_NAME = import.meta.env.SITE_NAME; +const SITE_PROTOCOL = import.meta.env.SITE_PROTOCOL; +const SITE_DOMAIN = import.meta.env.SITE_DOMAIN; +const SITE_BASE = import.meta.env.SITE_BASE; + // Adapters import node from '@astrojs/node'; @@ -9,7 +14,8 @@ import mdx from '@astrojs/mdx'; import partytown from '@astrojs/partytown'; export default defineConfig({ - site: 'docs.company.net', + site: SITE_PROTOCOL + '://' + SITE_DOMAIN, + base: SITE_BASE, output: "hybrid", prefetch: true, adapter: node({