-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.ts
More file actions
53 lines (49 loc) · 1.05 KB
/
Copy pathastro.config.ts
File metadata and controls
53 lines (49 loc) · 1.05 KB
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
52
53
import { defineConfig } from 'astro/config';
import path from 'node:path';
import svelte from '@astrojs/svelte';
import mdx from '@astrojs/mdx';
import pagefind from 'astro-pagefind';
import icon from 'astro-icon';
import robotsTxt from 'astro-robots-txt';
import sitemap from '@astrojs/sitemap';
import purgecss from 'astro-purgecss';
// https://astro.build/config
export default defineConfig({
server: { host: true, port: 2999 },
scopedStyleStrategy: 'attribute',
i18n: {
defaultLocale: 'ja',
locales: ['ja', 'en'],
fallback: {
en: 'ja',
},
routing: {
prefixDefaultLocale: false,
},
},
markdown: {
shikiConfig: {
theme: 'dracula',
},
},
site: 'https://7rs.dev',
integrations: [
svelte({ emitCss: false }),
mdx(),
pagefind(),
icon({ iconDir: 'src/icons' }),
// Metadata
robotsTxt(),
sitemap(),
// Compress
purgecss(),
],
// https://vitejs.dev/config/
vite: {
resolve: {
alias: {
'@lib': path.resolve('./scripts/lib'),
},
},
},
});