-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
astro.config.ts
31 lines (29 loc) · 703 Bytes
/
astro.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import partytown from '@astrojs/partytown';
import sitemap from '@astrojs/sitemap';
import { defineConfig } from 'astro/config';
import { loadEnv } from 'vite';
const environment = loadEnv(process.env.NODE_ENV ?? 'development', './src/global/env', '');
export default defineConfig({
build:
{
assetsPrefix: process.env.NODE_ENV === 'production' ? environment.BASE_URL : undefined,
inlineStylesheets: 'never'
},
integrations:
[
sitemap(),
partytown({ config: { forward: [ 'dataLayer.push' ] } })
],
output: 'static',
server:
{
host: true,
open: true
},
site: environment.BASE_URL,
trailingSlash: 'never',
vite:
{
envDir: './src/global/env'
}
});