Import ENVs
This commit is contained in:
parent
f86774e3ac
commit
0c6d1ebd06
1 changed files with 7 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue