Import ENVs

This commit is contained in:
Korbs 2024-06-06 17:51:07 -04:00
parent f86774e3ac
commit 0c6d1ebd06

View file

@ -1,5 +1,10 @@
import { defineConfig } from 'astro/config'; 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 // Adapters
import node from '@astrojs/node'; import node from '@astrojs/node';
@ -9,7 +14,8 @@ import mdx from '@astrojs/mdx';
import partytown from '@astrojs/partytown'; import partytown from '@astrojs/partytown';
export default defineConfig({ export default defineConfig({
site: 'docs.company.net', site: SITE_PROTOCOL + '://' + SITE_DOMAIN,
base: SITE_BASE,
output: "hybrid", output: "hybrid",
prefetch: true, prefetch: true,
adapter: node({ adapter: node({