generated from sngrstudio/astro-prod-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
52 lines (47 loc) · 1.08 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
import { defineConfig, sharpImageService } from 'astro/config'
// Astro integrations
import react from '@astrojs/react'
import sitemap from '@astrojs/sitemap'
import AstroPWA from '@vite-pwa/astro'
import markdoc from '@astrojs/markdoc'
import vercel from '@astrojs/vercel/serverless'
// Vite plugins
import Icons from 'unplugin-icons/vite'
import svgr from 'vite-plugin-svgr'
// Other imports
import manifest from './src/includes/manifest.json' assert { type: 'json' }
// https://astro.build/config
export default defineConfig({
site: 'https://www.sbdigital.id',
integrations: [
react(),
markdoc(),
sitemap(),
AstroPWA({
disable: true,
strategies: 'injectManifest',
srcDir: 'src/includes',
filename: 'sw.ts',
registerType: 'autoUpdate',
manifest,
}),
],
vite: {
plugins: [
svgr(),
Icons({
compiler: 'jsx',
jsx: 'react',
}),
],
},
experimental: {
assets: true,
},
image: {
service: sharpImageService(),
},
compressHTML: true,
output: 'hybrid',
adapter: vercel(),
})