-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
astro.config.ts
51 lines (48 loc) · 1002 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { siteUrl, defaultLang, supportedLanguages } from './src/config.ts';
import { stylify } from '@stylify/astro';
import { defineConfig } from 'astro/config';
import sitemap from "@astrojs/sitemap";
import mdx from "@astrojs/mdx";
const host = '0.0.0.0';
const sitemapLocales = {};
for (const lang of Object.keys(supportedLanguages)) {
sitemapLocales[lang] = lang;
}
// https://astro.build/config
export default defineConfig({
integrations: [
stylify({
compiler: {
mangleSelectors: typeof process.env.STYLIFY_MANGLE_SELECTORS !== 'undefined'
},
bundles: [{
files: ['./src/**/*.{astro,ts,js,tsx,mdx}'],
outputFile: './src/assets/styles/stylify.css'
}],
importDefaultBundle: false
}),
sitemap({
i18n: {
defaultLocale: defaultLang,
locales: sitemapLocales
}
}),
mdx()
],
markdown: {
syntaxHighlight: 'prism',
},
server: {
host,
port: 3000
},
site: siteUrl,
vite: {
server: {
hmr: {
protocol: 'ws',
host
}
}
}
});