-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathastro.config.mjs
41 lines (35 loc) · 916 Bytes
/
astro.config.mjs
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
32
33
34
35
36
37
38
39
40
41
// @ts-check
import {defineConfig} from 'astro/config';
import yaml from '@rollup/plugin-yaml';
import process from "node:process";
import svelte from '@astrojs/svelte';
import {fileURLToPath} from "node:url";
import mdx from '@astrojs/mdx';
const baseUrl = "/" + (process.env.WEBSITE_BASE?.split('/')?.slice(1)?.join('/') ?? "");
// https://astro.build/config
export default defineConfig({
site: process.env.WEBSITE_HOST,
base: baseUrl,
vite: {
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'$styles': fileURLToPath(new URL('./src/assets/styles', import.meta.url)),
},
},
plugins: [yaml()],
},
experimental: {
contentIntellisense: true,
svg: true,
},
integrations: [svelte(), mdx()],
markdown: {
shikiConfig: {
themes: {
light: 'github-light',
dark: 'github-dark',
},
},
},
});