-
Notifications
You must be signed in to change notification settings - Fork 12
/
astro.config.mjs
87 lines (74 loc) · 1.9 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
//? [JS]:[Library]
//TODO <import vue>
import react from '@astrojs/react';
//* Prefetch for AstroJS
import prefetch from '@astrojs/prefetch';
//* MDX / MD Integration
import mdx from '@astrojs/mdx';
import markdownConfig from './markdown.config';
//* [TailWindCSS] for AstroJS
//? Reference https://kbve.com/application/javascript/#tailwindcss
import tailwind from '@astrojs/tailwind';
//* [AlpineJS]:[AstroJS]
//? Reference https://kbve.com/application/javascript/#alphinejs
import alpinejs from '@astrojs/alpinejs';
//* Party Town for AstroJS
import partytown from '@astrojs/partytown';
//* Define Config of AstroJS
//* [Svelte]:[AstroJS]
import svelte from '@astrojs/svelte';
//! [Million.js]
//import million from 'million/compiler';
// https://astro.build/config
export default defineConfig({
site: 'https://kbve.com/',
markdown: markdownConfig,
integrations: [
sitemap({
customPages: ['https://app.kbve.com/#/', 'https://app.kbve.com/#/asset/'],
}),
mdx({
...markdownConfig,
//extendPlugins: "astroDefaults"
}),
// React
react(),
// Post-Build -> Compress
//compress(),
// Prefetch
prefetch({
throttle: 5,
}),
tailwind(),
alpinejs(),
partytown({
// dataLayer.push as a forwarding-event.
config: {
forward: ['dataLayer.push'],
},
}),
// Image Experimental from Astro.
// Svelte
svelte(),
],
// Vite
vite: {
//plugins: [million.vite({ mode: 'react', optimize: false, server: true })],
plugins: [],
ssr: {
//external: ["@11ty/eleventy-img", "svgo"],
//external: ["@11ty/eleventy-img"]
},
// build: {
// rollupOptions: {
// output: {
// entryFileNames: 'entry.[hash].js',
// chunkFileNames: 'chunks/chunk.[hash].js',
// assetFileNames: 'assets/asset.[hash][extname]',
// },
// },
// },
},
});