-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathastro.config.ts
More file actions
38 lines (36 loc) · 1.29 KB
/
astro.config.ts
File metadata and controls
38 lines (36 loc) · 1.29 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
import { defineConfig } from 'astro/config'
import preact from '@astrojs/preact'
import react from '@astrojs/react'
import netlify from '@astrojs/netlify'
import vue from '@astrojs/vue'
import sitemap from './src/integrations/compat-sitemap'
// https://astro.build/config
export default defineConfig( {
// Netlify Adapter - https://docs.astro.build/en/guides/integrations-guide/netlify/
// Netlify Deploy Guide - https://docs.astro.build/en/guides/deploy/netlify/#adapter-for-ssredge
adapter: netlify(),
site: 'https://marvelorder.com',
integrations: [// Enable Preact to support Preact JSX components.
preact( {
include: [
/src\/components\/Header\/SidebarToggle\.tsx$/,
/src\/components\/Header\/LanguageSelect\.tsx$/,
/src\/components\/RightSidebar\/ThemeToggleButton\.tsx$/,
],
} ), // Enable React for the Algolia search component.
react( {
include: [ /src\/components\/Header\/Search\.tsx$/ ],
} ),
vue(),
sitemap(),
],
// Vite options
// https://docs.astro.build/en/reference/configuration-reference/#vite
vite: {
build: {
commonjsOptions: {
transformMixedEsModules: true,
},
},
},
} )